home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / mh-faq / part1 < prev   
Encoding:
Text File  |  1995-07-25  |  78.5 KB  |  2,307 lines

  1. Subject: MH Frequently Asked Questions (FAQ) with Answers
  2. Newsgroups: comp.mail.mh,comp.answers,news.answers
  3. From: Bill Wohler <wohler@newt.com>
  4. Date: 10 Nov 1994 01:25:52 GMT
  5.  
  6. Archive-name: mh-faq/part1
  7. Last-modified: $Date: 1994/11/08 04:29:12 $
  8. Version: $Revision: 94.11 $
  9. Posting-Frequency: monthly
  10.  
  11.   This is a living list of frequently asked questions on the mailer
  12.   user interface, Mail Handler, or MH.  The point of this is to
  13.   circulate existing information, and avoid rehashing old answers.
  14.   Better to build on top than start again.  Please read this document
  15.   before ever posting to this newsgroup.
  16.  
  17.   This article is posted monthly.  If it has already expired and
  18.   you're not reading this, you can hope that you saved Question 1.3,
  19.   "Where can I get MH," so that you can get a copy yourself.
  20.  
  21.   Please do not post an answer when someone posts a frequently asked
  22.   question; rather, email the relevant section of the FAQ to eliminate
  23.   unnecessary traffic in this newsgroup.  Note that I usually do this.
  24.  
  25.   This list depends on your comments, additions and fixes: please send
  26.   them to Bill Wohler <wohler@newt.com>.
  27.  
  28.   
  29. Subject: Table of Contents
  30. From: Preface
  31.  
  32. Legend: + new, - deleted, ! changed
  33. _______________
  34.  
  35. 1. Introduction
  36.  
  37.  1.1  Why should I use MH?
  38.  1.2  What is the current version/status of MH?
  39.  1.3  Where can I get MH?
  40. !1.4  What references exist for MH?
  41. !1.5  What other MH software is available?
  42.  1.6  How can I print a MH manual?
  43.  1.7  How should I report bugs?
  44.  1.8  How can I convert from my mailer to MH?
  45. ______________
  46.  
  47. 2. Building MH
  48.  
  49.  2.1  What machines does MH run on?
  50.  2.2  How do I build MH?
  51.  2.3  What options should I use?
  52.  2.4  Where can I get POP3?
  53.  2.5  Does MH support IMAP?
  54.  2.6  Why does "mailgroup mail" only affect inc and not slocal?
  55. +2.7  How can I build MH on Solaris?
  56. +2.8  How can I build MH on Linux?
  57. _____________________
  58.  
  59. 3. Scanning & Reading
  60.  
  61.  3.1  What do I do if scan shows the wrong date?
  62. !3.2  How would one go about reading Usenet with MH?
  63.  3.3  How can I search through multiple folders?
  64.  3.4  Why don't MH format commands such as %(friendly) work?
  65. !3.5  Why doesn't "show" display all of a MIME message?
  66. +3.6  Can I get show not to run "less" so much on MIME messages?
  67. _________
  68.  
  69. 4. Filing
  70.  
  71.  4.1  Can I append MH messages to a UNIX mailbox format file?
  72.  4.2  Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  73.  4.3  Why do I get ".../.mh_sequences is poorly formatted?"
  74. _______________________
  75.  
  76. 5. Composing & Replying
  77.  
  78.  5.1  Why does repl add a "Re:" to a message that already has one?
  79.  5.2  How do I include messages in repl with or without ">"?
  80.  5.3  How can I eliminate duplicate copies of letters to myself?
  81. !5.4  How can I include my signature?
  82.  5.5  How do I call my editor with arguments?
  83. !5.6  How can I digestify messages in a folder for mail to another user?
  84.  5.7  How can I change my return address?
  85.  5.8  How can I change my From header?
  86.  5.9  How can I save a copy of all messages I send?
  87.  5.10 Can the folder in Fcc: be dynamically specified?
  88. __________
  89.  
  90. 6. Posting
  91.  
  92.  6.1  What to do with "Problems with edit - draft removed".
  93.  6.2  Can I run my message through a program (e.g., ispell) before sending?
  94.  6.3  What to do with "bad address 'xxx' - no at-sign after local-part".
  95. !6.4  Fixing "post: problem initializing server; [BHST] no servers available"
  96.  6.5  Fixing "post: problem initializing server; [RPLY] 503 Sender
  97.       already specified"
  98.  6.6  Fixing "post: unexpected response; [BHST] no socket opened"
  99.  6.7  How do I fix the "X-Authentication-Warning" header?
  100. _______________
  101.  
  102. 7. Mail Filters
  103.  
  104.  7.1  What mail filters are available?
  105.  7.2  Why slocal writes messages to system mailbox that from(1) can't read.
  106.  7.3  Where can I read about slocal and the format of .maildelivery?
  107.  7.4  How do I debug my .maildelivery file?
  108.  7.5  Why isn't slocal working?
  109. _______
  110.  
  111. 8. mh-e
  112.  
  113.  8.1  Is there documentation for mh-e?
  114.  8.2  How can mail aliases can be expanded in mh-e?
  115. ______
  116.  
  117. 9. Xmh
  118.  
  119.  9.1  How can I get xmh to use Emacs as the editor?
  120.  9.2  Does xmh support subfolders?
  121.  9.3  How do I precede included messages with ">" when replying in xmh?
  122.  
  123. Appendix
  124.  
  125. !Glossary, Acknowledgments, Copyright and Warranty
  126.  Switching xmh's editor
  127.  babyl2mh.pl
  128.  inco
  129.  
  130.   
  131. Subject: Viewing This Article
  132. From: Preface
  133.  
  134.   To skip to a particular question numbered xx, use "/^F.*xx" with most
  135.   pagers.  In GNU Emacs type "M-C-s ^F.*xx", (or C-r to search backwards),
  136.   followed by ESC to end the search.
  137.  
  138.   To skip to new or changed questions, use "/^S.*[!+]" with most pagers and
  139.   "M-C-s ^S.*[!+]" in GNU Emacs.
  140.  
  141.   This article is in digest format.  Nn may have already broken this
  142.   message into separate articles; if not, then type "G %".  In rn, use
  143.   ^G to skip sections.
  144.  
  145.   This article is treated as an outline when edited by GNU Emacs.  Run
  146.   "M-x describe-mode" to see available outline-mode commands.  Useful
  147.   commands are "M-x hide-body", "C-c C-s" (show-subtree) and "M-x
  148.   show-all"
  149.  
  150.   Numbers in square brackets denote the month and year of the last
  151.   update.
  152.  
  153.   If you should need the Internet address, use nslookup or dig if you
  154.   have them, or send mail to dns@grasp.insa-lyon.fr with "help" for
  155.   a Subject.
  156.  
  157.  
  158. Subject: ***** Introduction *****
  159. From: 1.
  160.  
  161.  
  162. Subject: Why should I use MH?
  163. From: 1.1
  164.  
  165.   The MH message handling system is a set of electronic mail programs
  166.   in the public domain.  If your computer runs UNIX, it can probably
  167.   run MH.
  168.  
  169.   The big difference between MH and most other "mail user agents" is
  170.   that you can use MH from a UNIX shell prompt.  In MH, each command
  171.   is a separate program, and the shell is used as an interpreter.  So,
  172.   all the power of UNIX shells (pipes, redirection, history, aliases,
  173.   and so on) works with MH--you don't have to learn a new interface.
  174.   Other mail agents have their own command interpreter for their
  175.   individual mail commands (although the mush mail agent simulates a
  176.   UNIX shell).
  177.  
  178.   Because MH commands aren't part of a monolithic mail system, you can
  179.   use them at any time; you don't have to start or quit the mail
  180.   agent.  Because you use them from a shell prompt, you can use all
  181.   the power of the shell.
  182.  
  183.   If your shell has time-saving aliases or functions (and most do),
  184.   you'll be able to use them with MH, of course.  And because MH isn't
  185.   a monolithic mail agent, you can use MH commands in UNIX shell
  186.   scripts, or call them from programs in high-level languages like C.
  187.  
  188.   Unlike most mail agents, MH keeps each message in a separate file.
  189.   The filename is the message number.  To rearrange the messages, MH
  190.   just changes the filenames.  MH can use standard UNIX file system
  191.   operations such as removing, copying and linking messages.  The
  192.   message files are grouped into one or more folders, which are
  193.   actually UNIX directories.
  194.  
  195.   MH is free, powerful, flexible--and the basics are easy to learn.
  196.   --Jerry Peek <jerry@ora.com>
  197.  
  198.   
  199. Subject: What is the current version/status of MH.
  200. From: 1.2
  201.  
  202.   The current version of MH is 6.8.3.
  203.  
  204.   This version includes MIME, a multi-media MH package that implements
  205.   the new IETF work on Multi-media 822 (MIME).  This allows you to
  206.   include things like audio, graphics, and the like, in your mail
  207.   messages.  --Marshall Rose <mrose@dbc.mtview.ca.us>
  208.  
  209.   MH now works with Kerberos as well.
  210.  
  211.   In addition, a new program called mhparam extracts arguments from
  212.   .mh_profile which is useful in shell scripts.
  213.  
  214.   Please see the file CHANGES in the distribution for more details. [5.94]
  215.  
  216.   
  217. Subject: Where can I get MH?
  218. From: 1.3
  219.  
  220.   MH comes standard with:
  221.   
  222.     Berkeley Software Design BSD/386  . MH Version 6.8.3
  223.     Control Data Corp. CDC4680-MP . . . EMH Version 1.4.2 (modified MH)
  224.     DEC Ultrix 3.1    . . . . . . . . . . MH Version 6.5
  225.     DEC Ultrix 4.2A & 4.4 . . . . . . . MH Version 6.7.1
  226.     DEC OSF/1 . . . . . . . . . . . . . MH Version 6.7
  227.     Evans and Sutherland ES/OS 2.3    . . MH Version 6.6
  228.     IBM PS/2 AIX 1.3  . . . . . . . . . MH Version 6.4
  229.     IBM RISC System/6000 AIX 3.x  . . . MH Version 6.6
  230.     IBM RISC System/6000 AIX 4.1  . . . MH Version 6.6
  231.     MIPS RISC/OS 4.52 . . . . . . . . . MH Version 6.6
  232.     Tektronix UTek    . . . . . . . . . . MH (Version Unknown)
  233.     Table maintained by: "James R. Hamilton"<jrh@jrh.guild.org>
  234.   
  235.   If you should need the Internet address, use nslookup or dig if you
  236.   have them, or send mail to dns@grasp.insa-lyon.fr with "help" for
  237.   a Subject.
  238.  
  239.   via anonymous ftp:                        [5.94]
  240.     ftp://ftp.ics.uci.edu/mh/mh-6.8.tar.Z                2MB
  241.     ftp://ftp.uu.net/networking/mail/mh/mh-6.8.tar.Z
  242.     ftp://krynn.efd.lth.se/pub/mail/mh-6.8.tar.Z
  243.  
  244.   via uucp:
  245.     The following shell script is one example of how to queue jobs for
  246.     downloading the files from UUNET via UUCP:
  247.  
  248.     #!/bin/sh
  249.     SRC=uunet!~/mail/mh/tar/mh-6.8.tar.Z-split
  250.     DST=/usr/spool/uucppublic/mh
  251.     uucp -d -r $SRC/README $DST/README
  252.     for f in 01 02 03 04 05 06 07 08
  253.     do
  254.         uucp -d -r $SRC/part$f $DST/part$f
  255.     done
  256.  
  257.     UUNET subscribers would then call normally using uucico.  Others
  258.     can use UUNET's 900 number to access UUNET via anonymous uucp.  The
  259.     number is 1-900-468-7727.  The login name is "uucp" and there is no
  260.     password.  The following is a sample Systems/L.sys entry:
  261.     
  262.     uunet Any ACU 19200 19004687727 "" \d\r ogin:--ogin:--ogin: uucp
  263.     
  264.     The modems on the 900 lines are Telebit WorldBlazers.  These modems
  265.     negotiate V.32bis, V.32, 2400, 1200, and last with (Turbo)PEP tones.
  266.     The cost is 50 cents per minute (as of Jan 93) which will appear on
  267.     the caller's next phone bill.  For more information about the 900
  268.     service, send email to help@uunet.uu.net (uunet!help). --Eric
  269.     Ziegast <ziegast@uunet.uu.net> [8.94]
  270.  
  271.   via mail:
  272.     Send a note to either mail-server@nluug.nl or
  273.     archive-server@germany.eu.net with a body containing the following:
  274.  
  275.       send mail/mh/mh-6.8.tar.Z
  276.  
  277.     UK users may be able to use ftpmail@doc.ic.ac.uk.  Send a note
  278.     whose body contains "help" to this address. [12.92]
  279.  
  280.     Send a note to ftpmail@decwrl.dec.com whose body contains "help"
  281.     on a line by itself get information on getting ftp sources by
  282.     mail.  Also include the lines "connect" and "dir /pub/mail/ua/mh"
  283.     to see which files are available local to decwrl.  Please do this
  284.     as a last resort only.  [1.93]
  285.  
  286.   via U.S. mail:
  287.     You can send $75 US to the address below.  This covers
  288.     the cost of a 6250 BPI 9-track magtape, handling, and ship-
  289.     ping.  In addition, you'll get a laser-printed hard-copy of
  290.     the entire MH documentation set.  Be sure to include your
  291.     USPS address with your check.  Checks must be drawn on U.S.
  292.     funds and should be made payable to:
  293.  
  294.        Regents of the University of California
  295.  
  296.     The distribution address is:
  297.  
  298.        University of California at Irvine
  299.        Office of Academic Computing
  300.        Engineering Gateway E2130
  301.        Irvine, CA  92717  USA
  302.  
  303.        +1 714 824 5153
  304.  
  305.     Sadly, if you just want the hard-copies of the documenta-
  306.     tion, you still have to pay the $75.  The tar image has the
  307.     documentation source (the manual is in roff format, but the
  308.     rest are in TeX format).  Postscript formatted versions of
  309.     the TeX papers are available, as are crude tty-conversions
  310.     of those papers.  [1.93]
  311.  
  312.   
  313. Subject: ! What references exist for MH?
  314. From: 1.4
  315.  
  316.   Books:
  317.     MH & xmh: E-mail for Users & Programmers.  Second edition. Jerry Peek.
  318.     ISBN 1-56592-027-9.  $29.95.  728 pages.
  319.     O'Reilly & Associates, Inc.
  320.     Book Orders:
  321.       US and Canada: 800-998-9938. Fax: 707-829-0104.
  322.  
  323.     References to "the MH book" in this document refer to the second
  324.     edition of this book (section numbers for the first edition appear
  325.     in parenthesis).
  326.  
  327.     To get a list of non-US distributors, send a note to
  328.     nuts@ora.com or call +1-707-829-0515.
  329.  
  330.     Examples from this book are in:
  331.     ftp://ftp.uu.net/published/oreilly/nutshell/MHxmh/MHxmh2.tar.Z    54k
  332.  
  333.     There is another book that contains a number of examples of
  334.     advanced mail handing using MH as the example message handler.
  335.     It's also quite a good reference on email in general.  [12.92]
  336.  
  337.     The Internet Message.  Marshall T. Rose
  338.     ISBN 0-13-092941-7.  396 pages.
  339.     P T R Prentice Hall
  340.  
  341.   Papers:
  342.     MHN Tutorial by Jerry Sweet
  343.     ftp://ftp.ics.uci.edu/contrib/multimedia/mhn-tutorial.ps.Z        141k
  344.     ftp://ftp.ics.uci.edu/contrib/multimedia/mhn-tutorial.tex.Z        48k
  345.  
  346.   Usenet:
  347.     comp.mail.mh (gatewayed to MH-users)
  348.  
  349.   Mailing lists:
  350.      General questions/discussion: MH-users@ics.uci.edu
  351.      (gatewayed to comp.mail.mh).
  352.      MH developers and maintainers: MH-workers@ics.uci.edu.
  353.      Please use MH-users-request and MH-workers-request to request
  354.      an addition or deletion.
  355.  
  356.   MH-users archives:
  357.     ftp://ftp.ics.uci.edu/mh-users/*
  358.  
  359.     The files are in packf(1) format, compressed with compress(1).  To
  360.     get them, use anonymous ftp and set "binary" transfer mode.
  361.  
  362.       mh-users.86.Z       8549        mh-users.86.scan.Z      771
  363.       mh-users.87.Z      55449        mh-users.87.scan.Z     3679
  364.       mh-users.88.Z     182805        mh-users.88.scan.Z    11339
  365.       mh-users.89.Z      89151        mh-users.89.scan.Z     5522
  366.       mh-users.90.Z     402470        mh-users.90.scan.Z    21551
  367.       mh-users.91.Z     878763        mh-users.91.scan.Z    36992
  368.       mh-users.92.Z    1281585        mh-users.92.scan.Z    44975
  369.       mh-users.93.Z    1544159        mh-users.93.scan.Z    53938
  370.       mh-users.mbox: current archive, uncompressed.
  371.  
  372.     There are directions in the README file.  Basically, you can use
  373.     either "msh" or the individual commands "inc -file" to get the
  374.     messages into a folder, and then "scan", "pick", "show", and so on
  375.     (or your favorite commands in xmh, mh-e, etc.).  --Jerry Peek
  376.     <jerry@ora.com>
  377.  
  378.   This document:
  379.     via WWW:
  380.       http://www.cis.ohio-state.edu/hypertext/faq/usenet/mh-faq/top.html
  381.  
  382.     via anonymous ftp:
  383.       ftp://rtfm.mit.edu/pub/usenet/news.answers/mh-faq/part1
  384.       ftp://ftp.uu.net/archive/usenet/news.answers/mh-faq/part1.Z
  385.       ftp://ftp.cs.ruu.nl/pub/NEWS.ANSWERS/mh-faq/part1
  386.  
  387.     via mail:
  388.       Each of the following addresses is following by commands which
  389.       should be included as the body of the message.
  390.  
  391.       mail-server@rtfm.mit.edu
  392.         send /usenet/comp.mail.mh/mh-faq/part1
  393.  
  394.       mail-server@cs.ruu.nl
  395.     send /pub/NEWS.ANSWERS/mh-faq/part1
  396.  
  397.     via uucp:
  398.       uunet!/archive/usenet/news.answers/mh-faq/part1.Z
  399.  
  400.   Signature and Finger FAQ
  401.     via WWW:
  402.       http://www.cis.ohio-state.edu/hypertext/faq/usenet/signature_finger_faq/faq.html
  403.  
  404.     via anonymous ftp:
  405.       ftp://rtfm.mit.edu/pub/usenet/news.answers/signature_finger_faq
  406.  
  407.     via mail (see above for usage):
  408.       mail-server@rtfm.mit.edu
  409.         send /usenet/news.answers/signature_finger_faq
  410.  
  411.     via uucp:
  412.       uunet!/archive/usenet/news.answers/signature_finger_faq
  413.  
  414.   
  415. Subject: ! What other MH software is available?
  416. From: 1.5
  417.  
  418.   vmh
  419.     Vmh is designed for people using the bulletin-board features
  420.     of MH, where mail is stored in packed (single-file) folders.  As
  421.     a result, use of this program cannot be mixed with the use of
  422.     normal MH commands.  Vmh is a part of the official MH
  423.     distribution.  --James Perkins <jamesp@sp-eug.com> [1.93]
  424.  
  425.   xmh
  426.     Xmh is a X11 mouse-based MH browsing tool.  It is very powerful
  427.     and feature-filled and thus comes with a moderate learning
  428.     curve.  Its dependence on the X11 environment makes it very
  429.     reconfigurable, but only by people well-versed in X applications
  430.     programming.  Its message reply built-in-editor interface is not
  431.     always popular among those used to having MH bring up the editor
  432.     of their choice.  --James Perkins <jamesp@sp-eug.com>
  433.  
  434.     xmh is part of the standard X Window System distribution from
  435.     the X Consortium.  Ultrix also ships dxmail which is similar.
  436.  
  437.     ftp://cs.utk.edu/pub/xmh.shar.Z                    162k
  438.  
  439.     Here's a version of xmh that includes MIME.  --Harald Tveit
  440.     Alvestrand <hta@boheme.er.sintef.no> [1.93]
  441.  
  442.     ftp://aun.uninett.no/pub/mail/mixmh/mixmh-0.3.tar.Z            232k
  443.  
  444.   exmh
  445.     EXMH is a user interface for the MH mail system written in TCL/TK.
  446.  
  447.     Exmh has MIME support, color feedback in the scan listing, a
  448.     folder display with one label per folder, clever scan caching,
  449.     facesaver bitmap display; background inc, various inc styles,
  450.     searching over folder listing and message body, a dialog-box
  451.     interface to MH pick, a simple built-in emacs-like editor,
  452.     interfaces to other editors, user preferences, user hacking
  453.     support. [8.94]
  454.  
  455.     ftp://parcftp.xerox.com/pub/exmh/exmh-1.4.1.tar.Z            357k
  456.     ftp://parcftp.xerox.com/pub/exmh/exmh-1.5omega.tar.Z
  457.  
  458.   mh-e
  459.     Mh-e is the GNU Emacs front end for MH.  It offers all the
  460.     functionality of MH, the visual orientation and simplicity of
  461.     use of xmh, and full integration with Emacs, including thorough
  462.     configurability.  The command set is similar to that of rmail
  463.     (the Emacs front end for BSD mail) and BSD mail itself.  On-line
  464.     help is available.
  465.  
  466.     Mh-e allows one to read and process mail very quickly: commands
  467.     are single characters and completion and defaults are available
  468.     for file and folder names.  During a reply, the original message
  469.     is displayed simultaneously in another window for easy reference
  470.     where a mh-e command can quickly incorporate and format this
  471.     text into your reply.
  472.  
  473.     With mh-e you compose outgoing messages in Emacs.  This is a big
  474.     plus for Emacs users, but it has been known for non-Emacs users
  475.     to be able use mh-e after only learning the most basic cursor
  476.     motion commands.  Mh-e is easily configured via the Emacs
  477.     edit-options menu, and people familiar with Emacs Lisp will be
  478.     able to further reconfigure mh-e beyond recognition.
  479.  
  480.     Mh-e is part of the standard GNU Emacs distribution.  Note that
  481.     mh-e got much faster in Emacs 18.56.  --Stephen Gildea
  482.     <gildea@x.org> [5.94]
  483.  
  484.     ftp://ftp.x.org/misc/mh-e/mh-e-4.1.tar.Z                66k
  485.  
  486.   metamail
  487.     Metamail is a package that can be used to convert virtually ANY
  488.     mail-reading program on UNIX into a multi-media mail-reading program.
  489.     It is an extremely generic implementation of MIME (Multipurpose
  490.     Internet Mail Extensions), the proposed standard for multi-media mail
  491.     formats on the Internet.  The implementation is extremely flexible and
  492.     extensible, using a "mailcap" file mechanism for adding support for new
  493.     data formats when sent through the mail.  At a heterogeneous site where
  494.     many mail readers are in use, the mailcap mechanism can be used to
  495.     extend them all to support new types of multi-media mail by a single
  496.     addition to a mailcap file.
  497.  
  498.     The metamail distribution comes complete with a small patch for
  499.     each of over a dozen popular mail reading programs, including
  500.     Berkeley mail, mh, Elm, Xmh, Xmail, Mailtool, Emacs Rmail, Emacs
  501.     VM, Andrew, and others.  Note that the MH patches are now integrated
  502.     into MH 6.8 --Nathaniel Borenstein <nsb@thumper.bellcore.com>
  503.  
  504.     ftp://thumper.bellcore.com/pub/nsb/mm2.7.tar.Z
  505.  
  506.   plum
  507.     Plum is a highly configurable and extensible screen-oriented front-end
  508.     for processing MH mail on ASCII terminals.  Unlike mh-e, the extension
  509.     language used in plum is perl, not LISP.  Plum offers many of the
  510.     advantages of xmh, but lacks several of xmh's disadvantages.  The
  511.     look&feel derives more from vi than from emacs.  Key bindings and
  512.     functions may be changed on the fly to suit the user's preference.  It
  513.     offers filename and word completion on folder, variables, and command
  514.     names.
  515.  
  516.     Until it is included in the standard distribution (under miscellany),
  517.     you can find a copy on:
  518.  
  519.     ftp://perl.com/pub/perl/scripts/plum.gz                29k
  520.     or mail requests to Tom Christiansen <tchrist@perl.com>. [11.94]
  521.  
  522.   mhunify
  523.     Mhunify is a set of perl scripts and templates that provides
  524.     shell-level MH functionality with USENET news.  Since MH supports
  525.     MIME, MIME-format news articles just work.  I've found that being
  526.     able to handle news in the same way that I handle email is very
  527.     useful, although there are some tradeoffs.
  528.  
  529.     Mhunify also treats MH folders just like news groups.  If you
  530.     subscribe to several mailing lists, and your email is
  531.     automatically delivered to separate folders, say, via procmail or
  532.     via MMDF's .maildelivery, the mhunify package lets you progress
  533.     automatically through your folders just as you would news groups.
  534.     --Jerry Sweet <jsweet@irvine.com> [11.94]
  535.  
  536.     ftp://ftp.ics.uci.edu/mh/contrib/multimedia/mhunify.shar.gz
  537.   
  538.   olmh
  539.     Sun's Open Windows 3 comes with a demo for OLIT (Open Look
  540.     Interface Toolkit, the Open Look wrapper to Xt) named olmh that
  541.     does handle 3rd and subsequent levels of nesting of folders.
  542.     --Dale Carstensen <dlc@c3file.c3.lanl.gov>
  543.  
  544.     Obtain the Open Windows 3 distribution CD/ROM from Sun (SPARC
  545.     only).  To do this, call 1-800-USA-4SUN and send tone "2" for
  546.     telemarketing after it answers.  The 4.1.2 CD/ROM may also have
  547.     Open Windows 3.  The list price for the 4.1.2 CD/ROM is $200.
  548.  
  549.   vmail
  550.     Vmail is a curses-based, vi-like message browser which calls on
  551.     MH programs to manipulate mail.  It can be used on almost any
  552.     terminal.  It organizes mail folders into index pages, from
  553.     which a message can be selected to be shown, replied-to,
  554.     forwarded, refiled, deleted, and so on.  The vi-like interface
  555.     and command keystrokes are comfortable to less-experienced UNIX
  556.     users, and it is a small, compact program, unlike the mh-e Emacs
  557.     package.
  558.  
  559.     This version of vmail has been bugfixed and enhanced from the
  560.     original vmail published on the net in 1987 by J. Zobel.
  561.     --James Perkins <jamesp@sp-eug.com> [1.93]
  562.  
  563.     ftp://ftp.uu.net/comp.sources.unix/volume12/vmail/part0*.Z        46k
  564.     ftp://ftp.ucs.ubc.ca/pub/mh/vmail.[1-3]of3.Z            58k
  565.     Or mail requests to James Perkins <jamesp@sp-eug.com>.  [5.94]
  566.  
  567.   vmailtool
  568.     If you have a Sun workstation, vmailtool may be for you.  It is a
  569.     button gadget panel for the above-mentioned vmail program.  It
  570.     brings vmail into the windows era where people no longer need to
  571.     memorize specific command keystrokes.  It also provides a mail
  572.     icon with the flag that pops up when new mail arrives.  Again,
  573.     this is a compact, simple tool, unlike the powerful xmh program.
  574.     Still, it's a welcome alternative for many people who are running
  575.     SunView or OpenWindows.  --James Perkins <jamesp@sp-eug.com> [1.93]
  576.  
  577.     ftp://ftp.ucs.ubc.ca/pub/mh/vmailtool.Z                18k
  578.     or mail requests to James Perkins <jamesp@sp-eug.com>. [5.94]
  579.  
  580.   mmh
  581.     MMH, My Mail Handler, is a Motif interface for reading and sending mail.
  582.     It uses the MH commands to actually handle sending a receiving messages.
  583.     It does not support all the capabilities of MH, but offers a large
  584.     enough subset to handle the majority of users.  Its intended user is
  585.     someone between "bumbling email novice" and "sophisticated user".
  586.     Hooks are provided to allow the user to customize and add new commands.
  587.  
  588.     ftp://ftp.eos.ncsu.edu/pub/bill/bill.tar.Z                120k
  589.  
  590.   X.500 lookups
  591.     If a name is enclosed in square brackets, when entering a destination
  592.     address:
  593.  
  594.     To: [Greg Wickham,CSIRO]
  595.  
  596.     a search will be made in the X.500 Directory for the individual's entry.
  597.     If an address exists then it will be extracted and placed into the
  598.     headers.  Mail requests for the software to the author.  --Andrew
  599.     Waugh <ajw@mel.dit.csiro.au>
  600.  
  601.   QueueMH
  602.     QuemeMH is an email based service request and tracking system
  603.     based on the Rand Mail Handler. --Barbara Dyker
  604.     <dyker@teal.csn.org>  [1.93]
  605.  
  606.     ftp://ftp.cs.colorado.edu/pub/cs/sysadmin/utilities/queuemh.tar.Z   98k
  607.  
  608.   QMH:
  609.  
  610.     Qmh is an MH-based group mail management tool. Written entirely in
  611.     perl, Qmh combines the best aspects of MH with group mail
  612.     heuristics and delivers a sensible package for all levels of UNIX
  613.     users. A limitless number of individual queues and associated
  614.     groups of permitted users can be established.
  615.  
  616.     Specific functionality includes the following modes of operation;
  617.     checking header dates and sending reminder/deadline mail, editing
  618.     existing messages, help screens, creating new messages from
  619.     scratch or exiting messages, resolving messages, scanning queue
  620.     folders, and annotating with status both by editing and sending
  621.     mail.
  622.  
  623.     Qmh is a single generic program in and of itself from which all
  624.     modes of operation are invoked. Additionally, each separate queue
  625.     may be accessed via a link to the single program. All system
  626.     configuration is maintained in a single file that is read upon
  627.     each invocation of Qmh.  Formatting and template files are
  628.     provided in the system library, although individual users can
  629.     override the defaults simply by creating equivalent files in their
  630.     own MH mail directory.
  631.  
  632.     Qmh provides a powerful database-like functionality by allowing
  633.     limitless per-queue X-Qmh-<$value> headers to be included in
  634.     messages.  These "fields" then form the context of the queue
  635.     messages and provide a user-defined, but yet structured
  636.     environment for queries, reporting, and random information.
  637.  
  638.     Qmh is designed to provide a complete solution for SA groups, help
  639.     desks, support organizations, or wherever two or more individuals
  640.     are trying to manage multiple mail requests.
  641.  
  642.     Qmh is also compatible with versions of xmh that provide
  643.     user-level command buttons. Provided in the Qmh package is a
  644.     ~/.Xdefaults template file that's setup to harness the power of
  645.     Qmh.
  646.  
  647.     For more info, write to <info@rootgroup.com>.  [3.93]
  648.  
  649.   MacMH and PC/MH:
  650.     These were available only for non-commercial degree-granting
  651.     institutions from:
  652.  
  653.     Networking & Communication Systems
  654.     115 Pine Hall
  655.     Stanford University
  656.     Stanford, CA 94305-4122
  657.     Phone: +1 415-723-3909
  658.  
  659.     See also:
  660.       ftp://netix.com/pub/pc-mh-info/*
  661.  
  662.     --Jerry Peek <jerry@ora.com>
  663.  
  664.     For more PC/MH info, contact:
  665.  
  666.     Netix Communications, Inc.
  667.        15375 Barranca Parkway
  668.        Building G, Suite 107
  669.        Irvine, CA 92718
  670.         Phone: +1 714-727-9532
  671.     FAX:   +1 714-727-3922
  672.     Internet: info@netix.com
  673.  
  674.     --Shannon Yeh <yeh@netix.com>
  675.  
  676.     In addition, you might try Wollongong, to see if they have something you
  677.     can get. [8.94]
  678.   
  679.   
  680. Subject: How can I print a MH manual?
  681. From: 1.6
  682.  
  683.   To order a copy by mail, see the section on how to get MH by mail in
  684.   [Q1.3 "Where can I get MH?"].  Also, check [Q1.4 "What references
  685.   exist for MH?"].
  686.  
  687.   To print your own copy, first obtain the MH sources [Q1.3 "Where can
  688.   I get MH?"] if you don't already have it.  Go into the "doc"
  689.   directory and run "make guide" to create the administrators guide
  690.   and "make manual" to create a user's manual which includes tutorials
  691.   and man pages.  If the doc directory is empty or is missing the
  692.   Makefile, you'll have to run "mhconfig MH" in the conf directory so
  693.   that the documentation with correct local information is created.
  694.  
  695.   For properly formatting the documentation (at least the manual
  696.   pages) you might even have to install MH, because a reference to a
  697.   tmac.h file in the MH lib directory is made in the manual pages.
  698.  
  699.   You can also ftp the ASCII or postscript versions:
  700.  
  701.     ftp://ftp.ics.uci.edu/mh/doc/tutorial.ps.Z                65k
  702.     ftp://ftp.ics.uci.edu/mh/doc/ADMIN.ps.Z                56k
  703.     ftp://ftp.ics.uci.edu/mh/doc/MH.ps.Z (man pages)            261k
  704.     ftp://ftp.uu.net/networking/mail/mh/doc/tutorial.ps.Z
  705.     ftp://ftp.uu.net/networking/mail/mh/doc/ADMIN.ps.Z
  706.     ftp://ftp.uu.net/networking/mail/mh/doc/MH.ps.Z (man pages)
  707.  
  708.   Or, you can send a note to mail-server@nluug.nl with a body containing the
  709.   following:
  710.  
  711.     send /mail/mh/papers-ps/tutorial.ps.Z
  712.  
  713.   --Bill Wohler <wohler@newt.com> and Jos Vos <jos@bull.nl> [1.93]
  714.  
  715.   
  716. Subject: How should I report bugs?
  717. From: 1.7
  718.  
  719.   Mail them to Bug-MH@ics.uci.edu and be sure to include the output of
  720.   the -help option as well as what hardware and operating system you
  721.   are using.
  722.  
  723.   
  724. Subject: How can I convert from my mailer to MH?
  725. From: 1.8
  726.  
  727.   If you use one of a mail agent like 'mail', 'mailx', 'elm' or
  728.   'mush', converting to MH is easy.  When you run the 'inc' command,
  729.   it reads all new messages from the system mailbox into your 'inbox'
  730.   folder.  Those mail agents also have separate files or "folders"
  731.   that hold messages in the same format as the system mailbox.  You
  732.   can read them with the 'inc -file' command.  For example, to read
  733.   the messages from your 'mbox' mail file into your MH 'inbox' folder,
  734.   you'd type:
  735.  
  736.     % cd
  737.     % cp mbox mbox.backup
  738.     % inc -file mbox
  739.  
  740.   If you see the usual "Incorporating new mail into inbox..." message
  741.   and a scan listing, the messages probably were converted.  Read some
  742.   or all of them (with the 'show' command) and be sure.  The 'inc'
  743.   won't remove your mbox unless you use '-truncate'.
  744.  
  745.   Section D.4 (C.4) of the MH book lists two scripts to convert mail
  746.   files to MH folders: babyl2mh to convert from rmail's BABYL format;
  747.   vmsmail2mh to convert from VMS's mail (see [Q1.4 "What references
  748.   exist for MH"] to see where the book's examples can be ftped from).
  749.   --Jerry Peek <jerry@ora.com>
  750.  
  751.   Vivek Khera <khera@cs.duke.edu> rewrote this in Perl since the
  752.   original script doesn't work for some people.  See [Appendix
  753.   "babyl2mh.pl."] [1.93]
  754.  
  755.   Juergen Nickelsen <nickel@cs.tu-berlin.de> provides yet another
  756.   short script.  He says,
  757.  
  758.   "You can remove the second to last second line ("> $input"), so
  759.   that the script doesn't zero out your RMAIL file.
  760.  
  761.   "Another alternative is to replace this line with "inc -file $tmpmbox
  762.   $folder && > $input", so that the RMAIL is only zeroed if inc
  763.   successfully incorporated the mail.  Finally one could add a switch
  764.   -z, so that the RMAIL file is only zeroed if the switch is given.
  765.   See [Appendix "inco."] [1.93]
  766.  
  767.   Use the following to convert a BABYL format file to UNIX mail
  768.   format. [5.94]
  769.   ftp://inf.informatik.uni-stuttgart.de/pub/gnu/emacs_extras/rmailtovm.el.Z 6k
  770.  
  771.   See also MH book Appendix D (Appendix C).
  772.  
  773.  
  774. Subject: ***** Building MH *****
  775. From: 2.
  776.  
  777.  
  778. Subject: What machines does MH run on?
  779. From: 2.1
  780.  
  781.   If you have a computer running UNIX, you can probably run MH.
  782.   --Jerry Peek <jerry@ora.com>
  783.  
  784.   
  785. Subject: How do I build MH?
  786. From: 2.2
  787.  
  788.   By carefully reading the READ-ME in the root of the source
  789.   hierarchy, one should not have any trouble building MH.
  790.  
  791.   
  792. Subject: What options should I use?
  793. From: 2.3
  794.  
  795.   BERK: Do NOT include the BERK option (in versions 6.7 or later)!
  796.   BERK breaks the mh-format functions that take apart address lines,
  797.   for example mbox, from, and friendly.  This would really put a crimp
  798.   on my replcomps file.
  799.  
  800.   LOCKF: if you have NFS, you need to lock your mailbox with lockf()
  801.   so the lock will be honored by all machines on the local network.
  802.   If you have the lockf() system call, include LOCKF.
  803.  
  804.   JQ Johnson <jqj@duff.uoregon.edu> makes the point that one should
  805.   use this option carefully since it requires a robust lockf() call.
  806.   For example, this option caused serious problems on his SunOS 4.1.1.
  807.   He suggested using LOK_BELL instead, and adding "lockstyle: 1" to
  808.   mtstailor.
  809.  
  810.   ATZ: makes your timezones print like "EST" instead of "-0500".  Much
  811.   prettier.
  812.  
  813.   --Stephen Gildea <gildea@x.org>
  814.  
  815.   However, Tony Landells <ahl@technix.oz.au> replies: "Yes; very
  816.   pretty.  How unfortunate that timezone names are so ambiguous, so
  817.   that EST can be interpreted, at a minimum, as (American) Eastern
  818.   Standard Time, (Australian) Eastern Standard Time, or (Australian)
  819.   Eastern Summer Time (and yes, I think it's dumb having the same
  820.   acronym for both normal and Summer time, but that's a different
  821.   problem).  While the numeric timezones may not look as nice, they
  822.   are, at least, reasonably unambiguous.  I would urge anyone who ever
  823.   intends/hopes/expects to use email outside the U.S. to NOT use ATZ
  824.   (sorry Stephen)."
  825.  
  826.   At any rate, the conf/examples directory has been updated and
  827.   contains many examples show you which options are required on your
  828.   platform and which are optional (in the upcoming version MH 6.8).  At
  829.   any rate, it is recommended that you examine the options in the
  830.   example configuration files, and read about them in READ-ME.
  831.  
  832.   RPATHS: a side-effect is that slocal writes messages to your system
  833.   maildrop without the MMDF C-A's that separate messages, so your BSD
  834.   tools like from work. [12.92]
  835.  
  836.   
  837. Subject: Where can I get POP3?
  838. From: 2.4
  839.  
  840.   MH6.7 (and earlier versions too) include a server for version 3 of POP.
  841.  
  842.   
  843. Subject: Does MH support IMAP?
  844. From: 2.5
  845.  
  846.   No.  MH only supports retrieving mail using POP3.  POP3 is on the
  847.   "standards track"--it is now an elective Internet Draft Standard
  848.   (see RFC1280 for more details).  At this point, IMAP[23] are
  849.   "experimental, limited use" protocols; it is unlikely that MH will
  850.   support them.  --John Romine <jromine@ics.uci.edu>
  851.  
  852.   However, I've found several things which might help.  First, a
  853.   definition lifted from the Pine FAQ:
  854.  
  855.   What is IMAP?
  856.  
  857.   IMAP stands for "Internet Message Access Protocol".  An IMAP client
  858.   program on any platform at any location on the Internet can access
  859.   email folders on an IMAP server.  While the messages appear to be
  860.   local, they reside on the server until the client explicitly moves
  861.   or deletes them.  The IMAP protocol is a superset of POP, containing
  862.   all POP commands plus more.  For a comparison of IMAP and POP, see
  863.   the paper Comparing Two Approaches to Remote Mailbox Access: IMAP
  864.   vs. POP (in ftp.cac.washington.edu:/mail/imap.vs.pop).  IMAP is what
  865.   allows Pine (or any other IMAP client) to get to email on a central
  866.   campus email server.  There are current IETF working groups revising
  867.   IMAP and readying it to become an Internet standard. A copy of the
  868.   latest IMAP draft may be obtained from
  869.   ftp://ftp.cac.washington.edu/mail/latest-imap-draft.  For a list of IMAP
  870.   clients, see the file imap.software, in the same directory. [8.94]
  871.  
  872.   Here are a few other references:
  873.  
  874.   ipop3d from the UW IMAP toolkit can operate in a couple modes.  As a
  875.   straight POP3 server, it uses the same C-client library as imapd, so
  876.   it co-exists comfortably with imapd.  It can also operate as a
  877.   POP-to-IMAP gateway so that your POP-only clients can access IMAP
  878.   services.  --David L Miller <dlm@cac.washington.edu> [8.94]
  879.  
  880.   ftp://ftp.cac.washington.edu/mail/imap.tar.Z                1.0M
  881.  
  882.   The only answer I can give for [how MH users can use IMAP] is that
  883.   Pine can read mailboxes in MH format; and that someone might in the
  884.   future develop a version of MH that can use IMAP.  --Mark Crispin
  885.   <MRC@Panda.COM> [8.94]
  886.  
  887.   
  888. Subject: Why does "mailgroup mail" only affect inc but not slocal?
  889. From: 2.6
  890.  
  891.   If "mailgroup" is set, inc is made set-group-id to this group name.
  892.   Some SYS5 systems want this to be set to "mail".  Set this if
  893.   /usr/spool/mail (or /usr/mail) is not world-writable.  These
  894.   changes were contributed by Peter Marvit, and "inc" is very careful
  895.   about its use of the set-gid privilege.
  896.  
  897.   Note that slocal doesn't know how to deal with this, and will not
  898.   work under these systems; just making it set-group-id will open a
  899.   security hole (since it doesn't know when to drop the set-gid
  900.   privileges).  If you're using "mailgroup", you should remove slocal
  901.   (and its man page) from your system. --John Romine
  902.   <jromine@ics.uci.edu> [1.93]
  903.  
  904.   Alternatives to slocal include deliver, procmail, and mailagent.
  905.   Archie can help you find where they are kept.
  906.  
  907.   
  908. Subject: + How can I build MH on Solaris?
  909. From: 2.7
  910.  
  911.   First, don't use the BSD compatible stuff.  Make sure that the Sun
  912.   or GNU compiler appear before the BSD compiler in your PATH.
  913.  
  914.   Second, don't use GNU make.  Make sure that the Sun make appears
  915.   before the GNU make in your PATH.
  916.  
  917.   Use conf/examples/solaris2.sun.com and fix the paths, if necessary.
  918.   Optionally change the following to use the GNU compiler, to perform
  919.   optimization, and to create shared libraries.
  920.  
  921.     cc              gcc
  922.     ccoptions       -O -g -msupersparc
  923.     slflags         -shared
  924.  
  925.   Incorporate the diff in [Appendix "mhn.c"].
  926.  
  927.   When compiling, you can ignore the following warning:
  928.  
  929.     fmtcompile.c", line 238: warning: semantics of "/" change in ANSI C;
  930.     use explicit cast
  931.  
  932.   If you're using AFS, you'll have to replace any occurrence of "ln"
  933.   with "ln -s" wherever the make dies when it tries to make a link
  934.   "on a different file system."
  935.   
  936.   --Neil Rickert <rickert@cs.niu.edu> & Scott K. Hutton
  937.   <shutton@habanero.ucs.indiana.edu> & Casper H.S. Dik
  938.   <casper@fwi.uva.nl> [11.94]
  939.  
  940.   
  941. Subject: + How can I build MH on Linux?
  942. From: 2.8
  943.  
  944.   A patch file and binaries are available.
  945.  
  946.   ftp://sunsite.unc.edu/pub/Linux/system/Mail/mailhandlers/mh-6.8.3-bin.tar.gz
  947.   ftp://sunsite.unc.edu/pub/Linux/system/Mail/mailhandlers/mh-6.8.3-patch.tar.gz
  948.   The sizes are 650k and 22k respectively.
  949.  
  950.   --Brandon S. Allbery <bsa@kf8nh.wariat.org> [11.94]
  951.  
  952.  
  953. Subject: ***** Scanning & Reading *****
  954. From: 3.
  955.  
  956.  
  957. Subject: What do I do if scan shows the wrong date?
  958. From: 3.1
  959.  
  960.   Upgrade to MH 6.8. [1.93]
  961.  
  962.   
  963. Subject: ! How would one go about reading Usenet with MH?
  964. From: 3.2
  965.  
  966.   Although news readers are better, if one really wants to use
  967.   MH, bbc will do the job.  For example, "bbc comp.mail.mh" reads this
  968.   newsgroup.  To enable bbc, you have to specify "bboards" when you
  969.   build MH.  --Stephen Gildea <gildea@x.org>
  970.  
  971.   You can save articles in the news readers for later perusal with MH.
  972.  
  973.   First, create a symbolic link from your mail directory (e.g., usenet) to
  974.   your news directory (e.g., "ln -s ~/News ~/Mail/usenet").  You can then
  975.   treat your news directory as a mail folder.  Thus, to select a news
  976.   group, use "folder +usenet/comp/mail/mh".
  977.  
  978.   To set the default save location correctly in rn, use:
  979.  
  980.     rn -M -/
  981.  
  982.   or in your nn presentation sequence:
  983.  
  984.     news.announce.        +$F/$N
  985.     comp.mail.mh        +
  986.     .
  987.     .
  988.  
  989.   If there's news spooled on your machine (that is, not via NNTP) then
  990.   you can read a newsgroup with commands like:
  991.   
  992.       show first +/usr/spool/news/comp/mail/mh
  993.       next
  994.       ...
  995.   
  996.   You can also use sequences to keep track of what you've read.  MH
  997.   will automatically set a "cur" sequence in each newsgroup you read
  998.   that way.  So, to continue reading the newsgroup sometime later,
  999.   after you've read some other folder, you can do:
  1000.   
  1001.       next +/usr/spool/news/comp/mail/mh
  1002.   
  1003.   and you'll read the next (new) article (if any) in that newsgroup.
  1004.  
  1005.   Note that this can eventually make your private context file pretty
  1006.   huge; if there's a group you don't read often, you can remove its
  1007.   context entries with a command like:
  1008.   
  1009.       rmf +/usr/spool/news/comp/mail/mh
  1010.   
  1011.   Don't try that on a folder full of mail (a folder that isn't
  1012.   read-only), though... in that case, it'll remove all the messages!
  1013.  
  1014.   I haven't looked into posting.  It seems like it shouldn't be hard.
  1015.   You could set up a "sendproc" that would look at outgoing email
  1016.   messages.  If the message had a Newsgroups: header field, your
  1017.   sendproc could call inews(1) instead of post(8).  I haven't seen
  1018.   much in the MH manpages or documentation about sendprocs (though I
  1019.   haven't looked for a couple of years...).  See the "mysend"
  1020.   script in the MH book section 13.13.
  1021.  
  1022.   A threaded news reader like trn or tin is so much nicer, though,
  1023.   that reading news with MH may not be worth the hassle.
  1024.  
  1025.   See also MH book section 8.7. --Jerry Peek <jerry@ora.com> [11.94]
  1026.  
  1027.   You can post via mail.  Send your article to
  1028.   news-group-name@cs.utexas.edu (e.g., comp-mail-mh@cs.utexas.edu).
  1029.   Note that the dots in the newsgroup name have been replaced by
  1030.   dashes.  Don't worry if the newsgroup name has a dash in it.  To
  1031.   cross-post, simply add the other newsgroups to the cc: field. 
  1032.  
  1033.   See mhunify in [Q1.5 "What other MH software is available?"].
  1034.   --Bill Wohler <wohler@newt.com> [11.94]
  1035.  
  1036.   
  1037. Subject: How can I search through multiple folders?
  1038. From: 3.3
  1039.  
  1040.   Recurse through the folders (in csh and sh):
  1041.  
  1042.   % foreach f (`folders -f`)        $ for f in `folders -f`
  1043.   ? pick [switches] +$f            > pick [switches] +$f
  1044.   ? end                    > done
  1045.  
  1046.   Or create a folder that contains links to all messages (in csh and sh):
  1047.  
  1048.     % foreach f (`folders -f | grep -v -x ln`)
  1049.     ? refile -src +$f -link all +ln
  1050.     ? end
  1051.  
  1052.     $ for f in `folders -f | grep -v -x ln`
  1053.     > do refile -src +$f -link all +ln
  1054.     > done
  1055.  
  1056.   and in the future, refile messages with "refile +folder +ln".  To
  1057.   find something, use:
  1058.  
  1059.     % pick [switches] +ln
  1060.  
  1061.   See MH book sections 7.2.9, 7.8.3. [3.93]
  1062.  
  1063.   
  1064. Subject: Why don't MH format commands such as %(friendly) work?
  1065. From: 3.4
  1066.  
  1067.   The BERK option disables address parsing and therefore functions
  1068.   such as %(friendly).  Recompile MH without the BERK option. --Anthony
  1069.   Baxter <anthony@aaii.oz.au> [5.94]
  1070.  
  1071.   
  1072. Subject: ! Why doesn't "show" display all of a MIME message?
  1073. From: 3.5
  1074.  
  1075.   It's not the fault of the "show" command or of MH in general.  It's
  1076.   your system's configuration.  Check the mhn_defaults file in your MH
  1077.   library directory; if it doesn't have defaults for all content types,
  1078.   add them.  Or, if you can't (or shouldn't) change mhn_defaults, you
  1079.   can put default entries in your MH profile file for those content types.
  1080.  
  1081.   Here's the part of the mhn(1) manpage that explains how content types
  1082.   are handled:
  1083.  
  1084.     First, mhn will look for an entry of the form:
  1085.  
  1086.     mhn-show-<type>/<subtype>
  1087.  
  1088.     to determine the command to use to display the content.  If this
  1089.     isn't found, mhn will look for an entry of the form:
  1090.  
  1091.     mhn-show-<type>
  1092.  
  1093.     to determine the display command.  If this isn't found, mhn has
  1094.     two default values:
  1095.  
  1096.     mhn-show-text/plain: %pmoreproc '%F'
  1097.     mhn-show-message/rfc822: %pshow -file '%F'
  1098.  
  1099.     If neither apply, mhn will check to see if the message has a
  1100.     application/octet-stream content with parameter "type=tar".  If
  1101.     so, mhn will use an appropriate command.  If not, mhn will
  1102.     complain.
  1103.  
  1104.   So, add defaults that cover the types MH doesn't handle right now (or
  1105.   doesn't handle the way you want it to).  Your defaults will override
  1106.   corresponding defaults in the mhn_defaults file.  For example, if you
  1107.   don't have an HTML editor/browser on your system, you could tell MH to
  1108.   use the "less" paginator for HTML message parts:
  1109.   
  1110.     mhn-show-text/x-html: less %F
  1111.   
  1112.   You can put that line in your MH profile.
  1113.  
  1114.   You can even set different defaults for different terminal types (say,
  1115.   your VT100 at home and your X setup at work).  Make a file in the same
  1116.   format as mhn_defaults; store its pathname in the MHN environment
  1117.   variable.  Add a test to your shell setup file (.profile, .login) that
  1118.   tests the value of the TERM variable -- and, if you have an mhn setup
  1119.   file for that terminal type, store its pathname in the MHN variable.
  1120.   --Jerry Peek <jerry@ora.com> [8.94]
  1121.  
  1122.   If you are not using the X Window System, you may have to add this
  1123.   line to your MH profile:
  1124.  
  1125.     mhn-charset-iso-8859-1: /bin/sh -c '%s'
  1126.   
  1127.   --Michael K. Neylon <mneylon@engin.umich.edu> [11.94]
  1128.  
  1129.   
  1130. Subject: + Can I get show not to run "less" so much on MIME messages?
  1131. From: 3.6
  1132.  
  1133.   If you say, "show all," and one of the messages was a MIME message,
  1134.   your pager will be run several times on each message, rather than
  1135.   once on all the messages as a whole.  If you find this annoying, set
  1136.   the environment variable NOMHNPROC:
  1137.  
  1138.     % setenv NOMHNPROC ""            # csh
  1139.     $ NOMHNPROC=                # sh and bash
  1140.       $ export NOMHNPROC
  1141.  
  1142.   --Bill Wohler <wohler@newt.com> [11.94]
  1143.  
  1144.  
  1145. Subject: ***** Filing *****
  1146. From: 4.
  1147.  
  1148.  
  1149. Subject: Can I append MH messages to a UNIX mailbox format file?
  1150. From: 4.1
  1151.  
  1152.   Yes, see support/general/packmbox.sh in the distribution.  [1.93]
  1153.  
  1154.   
  1155. Subject: Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  1156. From: 4.2
  1157.  
  1158.   To convert your MH folders to BABYL folders, first run the following script
  1159.   on your Mail directory.
  1160.  
  1161.   #!/bin/sh
  1162.  
  1163.   for f in Mail/*; do
  1164.     if [ -d $f ]; then
  1165.         touch msgbox
  1166.         folder=`basename $f`
  1167.         echo -n packing $folder ...
  1168.         packf +$folder
  1169.         echo done
  1170.         mv msgbox Mail-rmail/$folder
  1171.     fi
  1172.   done
  1173.  
  1174.   This assumes you don't have nested folders.  Your rmail folders will be
  1175.   left in $HOME/Mail-rmail in MMDF format which rmail can read.  Then run
  1176.   rmail-input for each folder, which converts each folder into BABYL format.
  1177.  
  1178.   Be sure not to append any messages before they are converted from MMDF
  1179.   to BABYL, since there may be really strange results.
  1180.  
  1181.   
  1182. Subject: Why do I get ".../.mh_sequences is poorly formatted?"
  1183. From: 4.3
  1184.  
  1185.   There is a line length limit in this file.  When sequences are
  1186.   unbroken (without gaps in numbering), that makes short entries in
  1187.   the .mh_sequences file, like this:
  1188.  
  1189.     inftex: 72-8000
  1190.  
  1191.   But when there are lots of numbering gaps, the entry gets long:
  1192.  
  1193.     inftex: 76 79-81 87 95-96 105 109 120 124 135 141 158 163...
  1194.  
  1195.   That's when you run into problems, and why it's good to keep the
  1196.   folder packed when you can.  Simply run "folder -pack +folder".
  1197.  
  1198.   If you're refiling a lot of messages in a large folder, you might
  1199.   not be able to use sequences.  Use backquotes to give the message
  1200.   numbers directly to "refile".  For example:
  1201.  
  1202.     refile +tex/info-tex `pick -to info-tex`
  1203.  
  1204.   That can still generate a long list of arguments to the "refile" command,
  1205.   and some UNIXes can't handle that.  In that case, use xargs(1):
  1206.  
  1207.     pick -to info-tex | xargs refile +tex/info-tex
  1208.  
  1209.   If worse comes to worst, fire up a Bourne shell and use a "while" loop:
  1210.  
  1211.     pick -to info-tex | fmt | while read nums; do
  1212.         refile +tex/info-tex $nums
  1213.     done
  1214.  
  1215.   The fmt(1) command breaks long lines into manageable chunks of 72
  1216.   characters or so, splitting arguments at whitespace.  When you redirect
  1217.   the input of a while loop, a "read" command will read the incoming text
  1218.   and store it in a shell variable line by line.  This is a quick-&-dirty
  1219.   way to write xargs(1) if you don't have it. --Jerry Peek
  1220.   <jerry@ora.com> [8.94]
  1221.  
  1222.  
  1223. Subject: ***** Composing & Replying *****
  1224. From: 5.
  1225.  
  1226.  
  1227. Subject: Why does repl add a "Re:" to a message that already has one?
  1228. From: 5.1
  1229.  
  1230.   I carefully reconfigured and rebuilt MH from scratch and the problem
  1231.   went away.  --Larry McVoy <lm@slovax.Eng.Sun.COM>
  1232.  
  1233.   
  1234. Subject: How do I include messages in repl with or without ">"?
  1235. From: 5.2
  1236.  
  1237.   When making a reply, specify a filter file on the command line:
  1238.  
  1239.     repl -filter repl.format
  1240.  
  1241.   This filter file must be in your MH mail directory (usually "Mail",
  1242.   in your home directory).  Here are a couple of example repl.format
  1243.   files:
  1244.  
  1245.     overflowtext="",overflowoffset=0
  1246.     message-id:nocomponent,formatfield=\
  1247.     "In message %{text}you write:"
  1248.     body:component=">",overflowtext=">",overflowoffset=0
  1249.  
  1250.           or
  1251.  
  1252.     overflowtext="",overflowoffset=0
  1253.     date:component="Your message dated",formatfield=\
  1254.     "%<(nodate{text})%{text}%|%(pretty{text})%>"
  1255.     body:component=">",overflowtext=">",overflowoffset=0
  1256.  
  1257.   Setting overflowoffset to 0 keeps MH from doing anything to
  1258.   extra-long lines in the headers.  In the body, however, this
  1259.   behavior is overridden so that long lines are automatically broken
  1260.   and a ">" is inserted before every line.  You could put almost
  1261.   whatever you want between those quotes, although the "standard" ">"
  1262.   makes it easier to read notes that have been included several times.
  1263.   The examples differ with the descriptive text that is inserted
  1264.   before the included body.
  1265.  
  1266.   It is suggested not to use the "prompter" editor in this case, since
  1267.   it is likely that you'll not want to use all of the included
  1268.   message.  Indeed, it is proper etiquette to edit out all unnecessary
  1269.   include verbiage so readers don't have to wade through the morass to
  1270.   read your pearls of wisdom.
  1271.  
  1272.   WARNING: the '>' appears on the first line ONLY in versions prior
  1273.   to 6.7.2.  Upgrade to MH 6.8.
  1274.  
  1275.   --Alan Thew <qq11@liv.ac.uk>, Mike Schwager <schwager@cs.uiuc.edu>,
  1276.   James T Perkins <jamesp@sp-eug.com> [1.93]
  1277.  
  1278.   See also MH book sections 6.7.4, 6.7.5, 9.4.1 (9.3.1).
  1279.  
  1280.   
  1281. Subject: How can I eliminate duplicate copies of letters to myself?
  1282. From: 5.3
  1283.  
  1284.   Add these two lines to your MH profile file:
  1285.  
  1286.     Alternate-Mailboxes: user@host1, user@host2, ...
  1287.         repl: -nocc me
  1288.  
  1289.   To get one copy, you can either:
  1290.  
  1291.   - Take out the "-nocc me"... then you'll get exactly one copy of
  1292.     your replies (assuming all your addresses are listed in
  1293.     Alternate-Mailboxes), or
  1294.  
  1295.   - [Q5.9 "How can I save a copy of all messages I send?"]
  1296.  
  1297.     For more info, see the man pages comp(1),
  1298.     repl(1), forw(1), dist(1) and mh-mail(5). --Jerry Peek <jerry@ora.com>
  1299.  
  1300.   The Alternate-Mailboxes also tells scan which messages are really
  1301.   from you so that it can place the recipient in the scan line instead
  1302.   of the sender.  --Bill Wohler <wohler@newt.com>
  1303.  
  1304.   See also MH book sections 6.7.2, 8.6.
  1305.  
  1306.   This is also a convenient way to AVOID automatically cc-ing a
  1307.   mailing list when replying to a person who sent the message to the
  1308.   mailing-list, by listing the name of that mailing list in your
  1309.   alternate mailboxes.  --Alec Wolman <wolman@crl.dec.com>
  1310.  
  1311.   
  1312. Subject: ! How can I include my signature?
  1313. From: 5.4
  1314.  
  1315.   There are several ways.
  1316.  
  1317.   1) The MH way.
  1318.  
  1319.   1a) In your Mail directory, create files that
  1320.       include your signature into the format of the message.
  1321.  
  1322.      ~/Mail/components:
  1323.     To:
  1324.     cc:
  1325.     Subject:
  1326.     --------
  1327.  
  1328.     --
  1329.     Eric Ziegast        ziegast@uunet.uu.net
  1330.     UUNET Technologies    uunet!ziegast
  1331.  
  1332.      ~/Mail/replfmt
  1333.     body:component="> ",compwidth=2
  1334.     :--
  1335.     :Eric Ziegast          ziegast@uunet.uu.net
  1336.     :UUNET Technologies    uunet!ziegast
  1337.  
  1338.      To use the replfmt file, add the following to your ~/.mh_profile:
  1339.  
  1340.     repl: -filter replfmt
  1341.  
  1342.      When comp is used, your signature is already there along with my
  1343.      headers.  When repl is used, the mhl program takes the body of
  1344.      the letter you're replying to, prepends '> ' to each line and
  1345.      then adds your signature at the end (available after version
  1346.      6.7). [11.94]
  1347.  
  1348.   1b) Create an "editor" which can be called from whatnow to add the
  1349.      signature when desired or create a frontend to post (use the
  1350.      .mh_profile line "postproc: postproc" to call it) that always
  1351.      appends the .signature file before calling post to mail the
  1352.      message.  David J. Fiander <david@golem.uucp>, David A.
  1353.      Truesdell <truesdel@nas.nasa.gov> and Tom Wilmore
  1354.      <sastjw@unx.sas.com> have sample scripts to do these.
  1355.  
  1356.   1c) Section 13.13 of the MH book lists mysend, a sendproc script to
  1357.     process a message after "What now? send" (see "What references
  1358.     exist for MH" to see where the book's examples can be ftped from).
  1359.     --Jerry Peek <jerry@ora.com> [9.92]
  1360.  
  1361.   2) Using your editor.  If you use vi, you can use something like:
  1362.  
  1363.       map S :r ~/.signature
  1364.  
  1365.      to load your signature out of .signature every time you
  1366.      hit 'S'.
  1367.  
  1368.   3) Use your windowing system.  xterm, for example, can provide key
  1369.      and button mappings for the utterly lazy.
  1370.  
  1371.   4) If you use Emacs with mh-e:
  1372.  
  1373.   4a) C-c C-s will append the signature.
  1374.  
  1375.   4b) Add the following to your .emacs file:
  1376.  
  1377.     (add-hook 'mh-compose-letter-function
  1378.         (function
  1379.          (lambda(a b c)
  1380.            (save-excursion
  1381.          (goto-char (point-max))
  1382.          (beginning-of-line)
  1383.          (insert-file (expand-file-name mh-signature-file-name))))))
  1384.  
  1385.       This hook is called after the draft buffer has been initialized,
  1386.       but before you have a chance to type anything.  --Andre
  1387.       Srinivasan <andre@neuronet.pitt.edu> [5.94]
  1388.  
  1389.   --Eric W. Ziegast <ziegast@uunet.uu.net> & Hardy Mayer
  1390.   <hardy@golem.ps.uci.edu> except where noted.
  1391.  
  1392.   Tired of the same old signature?  Want different signatures for
  1393.   different newsgroups?  Here's a program to help you out.
  1394.  
  1395.   The way it works is to have .signature be a named pipe, so if you
  1396.   don't have named pipes, just say 'n'.
  1397.  
  1398.   The sigrand program then feeds stuff down the pipe every time someone
  1399.   wants to read it.  That way it works for more than just news, but
  1400.   for anything that wants to read your .signature, like a mailer.
  1401.  
  1402.   You have your choice of three kinds of signatures:
  1403.  
  1404.       1) random (short) fortune from "fortune -s"; you get these if
  1405.      you don't have a global sig file.
  1406.       2) random fortune from ~/News/SIGNATURES [global sig file]
  1407.       3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]
  1408.  
  1409.   Ask Tom Christiansen <tchrist@perl.com> for more details. [11.94]
  1410.  
  1411.   See also the Signature FAQ [Q1.4 "What references exist for MH?"].
  1412.   [11.94]
  1413.   
  1414. Subject: How do I call my editor with arguments?
  1415. From: 5.5
  1416.  
  1417.   Set your editor (in .mh_profile) to the following shellscript:
  1418.  
  1419.     #/bin/sh
  1420.     <youreditor> <yourargs> $*
  1421.     exit 0
  1422.  
  1423.   --John Romine <jromine@ics.uci.edu>
  1424.  
  1425.   You might find it useful to make <youreditor> $EDITOR, or to use
  1426.   different arguments depending on your EDITOR environment variable.
  1427.   --Ray Nickson <Ray.Nickson@comp.vuw.ac.nz>
  1428.  
  1429.   
  1430. Subject: ! How can I digestify messages in a folder for mail to another user?
  1431. From: 5.6
  1432.  
  1433.   How about:
  1434.  
  1435.     forw [-digest tmp] [-form forwcomps] [-filter mhl.digest]
  1436.          messages +folder
  1437.  
  1438.   These messages can be un-digestified :-) by the MH burst(1) program.
  1439.   --Jerry Peek <jerry@ora.com> and Bill Wohler <wohler@newt.com>
  1440.  
  1441.   See also MH book sections 6.8, 7.9.
  1442.  
  1443.   There's another way, which is better if the recipient understands MIME.
  1444.  
  1445.       forw -mime messages +folder
  1446.  
  1447.   (Make sure that you either have "automhnproc: mhn" in your mh
  1448.   profile, or type "edit mhn" to whatnow before you send it.)
  1449.  
  1450.   This bundles each message in a MIME message/rfc822 part, and then
  1451.   bundles the whole mess up in a multipart/digest part.  You can still
  1452.   add your own text at the beginning.  The MH burst program can also
  1453.   understand these messages and split them apart with no problem.
  1454.   This works beautifully with MIME-capable mail readers, especially
  1455.   exmh. --Glenn Vanderburg <glv@utdallas.edu> [11.94]
  1456.  
  1457.   
  1458. Subject: How can I change my return address?
  1459. From: 5.7
  1460.  
  1461.   If you find that your mailer creates a From header that others have
  1462.   trouble replying to, you can add a Reply-To header to override the
  1463.   From header in replies.
  1464.  
  1465.   Copy the components and replcomps files which are normally found in
  1466.   /usr/local/lib/mh into your Mail directory and add a line like the
  1467.   following after the Subject header replacing my address with your
  1468.   address:
  1469.  
  1470.     Reply-To: wohler@newt.com
  1471.  
  1472.   [12.92]
  1473.  
  1474.   
  1475. Subject: How can I change my From header?
  1476. From: 5.8
  1477.  
  1478.   If you're just interested in changing the hostname, add a line to
  1479.   $LIB/mtstailor:
  1480.  
  1481.     localname: desired_host_name
  1482.  
  1483.   --Bill Wisner <wisner@netcom.com> [12.92]
  1484.  
  1485.   Just put a "From:" header in your "components", "replcomps" and
  1486.   "forwcomps" files.  MH will add a "Sender:" header with what it thinks
  1487.   is your real address, but (almost) no one cares about the "Sender:"
  1488.   header anyway.  --Jerry Peek <jerry@ora.com>  [12.92]
  1489.  
  1490.   
  1491. Subject: How can I save a copy of all messages I send?
  1492. From: 5.9
  1493.  
  1494.   Copy the components and replcomps files which are normally found in
  1495.   /usr/local/lib/mh into your Mail directory and add a line like the
  1496.   following after the cc header:
  1497.  
  1498.     Fcc: +out
  1499.  
  1500.   All outgoing messages will then be saved in the +out folder.  If you
  1501.   make a distcomps file, it needs "Resent-Fcc:". --Bill Wohler
  1502.   <wohler@newt.com> and Jerry Peek <jerry@ora.com> [8.94]
  1503.  
  1504.   
  1505. Subject: Can the folder in Fcc: be dynamically specified?
  1506. From: 5.10
  1507.  
  1508.   My suggestion would be to run Tom Christiansen's rfi script.  If you
  1509.   cannot find it on *.sources archive sites (please try first), I can
  1510.   mail it to you.
  1511.  
  1512.   One good idea would be to write a whatnowproc that files the mail
  1513.   based on a procmail or deliver file.  Then you can use the same file
  1514.   for incoming and outgoing mail.  --Andy Rabagliati <andyr@wizzy.com>
  1515.   [8.94]
  1516.     
  1517.  
  1518. Subject: ***** Posting *****
  1519. From: 6.
  1520.  
  1521.  
  1522. Subject: What to do with "Problems with edit - draft removed".
  1523. From: 6.1
  1524.  
  1525.   If your users are using an AT&T version of "vi", it's exiting with
  1526.   non-zero status (supposedly a count of the "errors" during the edit).
  1527.   Move "vi" to "broken_vi" and put it its place:
  1528.  
  1529.     #! /bin/sh
  1530.     /usr/ucb/broken_vi $*
  1531.     exit 0
  1532.  
  1533.   Alternatively, compile MH with the ATTVIBUG option.
  1534.  
  1535.   Then complain to your vendor that "vi" is broken, and they should
  1536.   fix it.  --John Romine <jromine@ics.uci.edu>
  1537.  
  1538.   
  1539. Subject: Can I run my message through a program (e.g., ispell) before sending?
  1540. From: 6.2
  1541.  
  1542.   It's pretty simple.  If your speller is called myspell, use:
  1543.  
  1544.     What now? edit myspell
  1545.  
  1546.   MH will actually execute:
  1547.  
  1548.     myspell /your-mail-draft-directory/draftfile
  1549.  
  1550.   and give the entire draft message to your speller.  The header will
  1551.   probably be "misspelled," of course, though you might be able to
  1552.   tell the speller to ignore it--or you could hack up a little shell
  1553.   script to run the speller on just the message body, then tack the
  1554.   corrected body back onto the header before sending.
  1555.  
  1556.   You can automate this some more.  For example, if you want your
  1557.   speller to run after your first edit with "prompter" and also after
  1558.   you leave the "vi" editor, add these lines to your MH profile:
  1559.  
  1560.       prompter-next: myspell
  1561.       vi-next: myspell
  1562.  
  1563.   Then, at the "What now?" prompt:
  1564.  
  1565.       What now? e
  1566.  
  1567.   your speller will run.  For more info, see the mh-profile(5) man
  1568.   page or section 6.2.1 of the MH book. --Jerry Peek <jerry@ora.com>
  1569.  
  1570.   
  1571. Subject: What to do with "bad address 'xxx' - no at-sign after local-part".
  1572. From: 6.3
  1573.  
  1574.   You may find that post returns the following message:
  1575.  
  1576.     post: bad address 'Mr. Foo Bar <fb@somewhere.edu>' - no at-sign
  1577.     after local-part (Bar), continuing...
  1578.  
  1579.   The unquoted dot causes "Mr. Foo" to be parsed as the local part of
  1580.   the address.  Either remove the dot, or rewrite the address as
  1581.   follows:
  1582.  
  1583.     "Mr. Foo Bar" <fb@somewhere.edu>
  1584.     (Mr. Foo Bar) <fb@somewhere.edu>
  1585.     (Mr. Foo Bar) fb@somewhere.edu
  1586.  
  1587.   --Owen Rees <rtor@ansa.co.uk> [1.93]
  1588.  
  1589.   
  1590. Subject: ! Fixing "post: problem initializing server; [BHST] no servers available"
  1591. From: 6.4
  1592.  
  1593.   The error message itself is essentially correct.  However, what this
  1594.   really means is: MH's post cannot connect to a running sendmail over
  1595.   an SMTP port (MH configured with SMTP and SENDMTS).
  1596.  
  1597.   The potential problems:
  1598.  
  1599.   1. Your local sendmail daemon is dying or not running for some
  1600.   reason.
  1601.  
  1602.   2. You use BIND and your local nameserver is not responding.
  1603.  
  1604.   3. Your mtstailor has its "servers:" pointing to a non-existent
  1605.   machine or a machine which is a) not reachable or b) not running the
  1606.   sendmail daemon.  --Peter Marvit <marvit@hplabs.hpl.hp.com>
  1607.  
  1608.   4. The hostname localhost [127.0.0.1] is missing from /etc/hosts.  --Bdale
  1609.   Garbee <bdale@col.hp.com> [5.94]
  1610.  
  1611.   Solutions or Workarounds:
  1612.  
  1613.   2. Delete "/etc/resolv.conf." --Eric Bracken
  1614.   <bracken@bacon.performance.com> [11.94]
  1615.      
  1616.   4. Change the "servers" line of the to read
  1617.  
  1618.     servers: 127.0.0.1 \01localnet
  1619.  
  1620.   --Eric Bracken <bracken@bacon.performance.com> [11.94]
  1621.  
  1622.   
  1623. Subject: Fixing "post: problem initializing server; [RPLY] 503 Sender already specified"
  1624. From: 6.5
  1625.  
  1626.   The problem in sendmail is that the RSET after the ONEX does not
  1627.   reset all the state information.  Normally sendmail fork()s after
  1628.   the Mail from: statement and a RSET causes that child to exit.  This
  1629.   automatically cleans up.  If the fork() is suppressed by ONEX, then
  1630.   the source must be modified to do the cleanup.  See "srvrsmtp.c
  1631.   patch" in the Appendix.  If you don't have the sources, modify your
  1632.   MH sources to not use the ONEX verb.  --Paul Pomes
  1633.   <paul@uxc.cso.uiuc.edu> [3.93]
  1634.  
  1635.   
  1636. Subject: Fixing "post: unexpected response; [BHST] no socket opened"
  1637. From: 6.6
  1638.  
  1639.   Problem happens when there is no interface defined within the tcp
  1640.   system.  A couple of workarounds include:
  1641.  
  1642.   o Use a hostname (other than the local host) instead of localhost in
  1643.     the "servers" entry of the "mtstailor" file (found in the MH
  1644.     library, usually /usr/local/lib/mh).
  1645.   o Recompile MH with sendmail instead of sendmail/mts (not very elegant).
  1646.  
  1647.   A better fix would be to define your tcp interface.
  1648.  
  1649.   Here, you run ifconfig and route (as root) to define the loopback
  1650.   device and route.  You should add them to rc.local so they are
  1651.   effected at every boot.
  1652.  
  1653.     # ifconfig lo 127.0.0.1            # Linux
  1654.     # ifconfig lo0 127.0.0.1        # Sun
  1655.  
  1656.     # route 127.0.0.1
  1657.  
  1658.   If all is well, "ifconfig lo" (or lo0), will show something like this
  1659.   (on my Linux system):
  1660.   
  1661.     lo        Link encap Local Loopback  
  1662.           inet addr 127.0.0.1  Bcast 127.255.255.255  Mask 255.0.0.0
  1663.           UP LOOPBACK RUNNING  MTU 2000  Metric 0
  1664.           RX packets 0 errors 0 dropped 0 overrun 0
  1665.           TX packets 519 errors 0 dropped 0 overrun 0
  1666.  
  1667.   and "netstat -r" will show:
  1668.  
  1669.     # netstat -r
  1670.     Destination net/address   Gateway address    Flags RefCnt    Use Iface
  1671.     127.0.0.0                 *                  UN         0    519 lo
  1672.  
  1673.   If you're not on a network and running DNS, your /etc/hosts will
  1674.   need at least:
  1675.  
  1676.     127.0.0.1    your_host_name localhost     # loopback address
  1677.  
  1678.   Note: put your name FIRST on the localhost line.  This official name
  1679.   is used by sendmail to determine your return address.  
  1680.  
  1681.   If you are on a network and running DNS, you might find that putting
  1682.   your host name in the localhost entry might gum up other things, in
  1683.   which case you'll want your hostname to have its own proper address.
  1684.   --Steve Lembark <lembark@wrkhors.la.ca.us> & Bill Wohler
  1685.   <wohler@newt.com> [8.94]
  1686.  
  1687.   This might not do it though.  David Youatt <dpy@sgi.com> says that
  1688.   his network was happy but he still had the problem until he upgraded
  1689.   his system and got the latest revision of sendmail as well.  He
  1690.   says: "Turns out that that the problem I was having seems to be
  1691.   caused (at least partly, maybe entirely) by the version of sendmail
  1692.   that is shipped with IRIX 5.2 (sendmail 5.65, I think).  The version
  1693.   shipped w/IRIX 5.3 (in beta) is sendmail 8.6.9 and works fine."
  1694.  
  1695.   I'm not entirely happy with this section, so please give me some
  1696.   feedback.  If you have this problem, please send me
  1697.   <wohler@newt.com> a brief description so I'll know which problems
  1698.   and solutions seem to be the most prevalent.
  1699.  
  1700.   
  1701. Subject: How do I fix the "X-Authentication-Warning" header?
  1702. From: 6.7
  1703.  
  1704.   You get a header like:
  1705.   
  1706.     X-Authentication-Warning: screamer.rtp.ericsson.se: Host
  1707.     rcur7.rtp.ericsson.se didn't use HELO protocol
  1708.  
  1709.   Easy possibilities are:  apply the patch to MH that comes with Sendmail
  1710.   8.X.X and makes it use HELO, or comment out the line that says
  1711.  
  1712.     Opauthwarnings
  1713.  
  1714.   in your sendmail.cf.
  1715.  
  1716.  
  1717. Subject: ***** Mail Filters *****
  1718. From: 7.
  1719.  
  1720.  
  1721. Subject: What mail filters are available?
  1722. From: 7.1
  1723.  
  1724.   The list currently includes slocal (included with MH), deliver,
  1725.   procmail and mailagent.  They are briefly described here.  Slocal is
  1726.   probably the most popular by virtue of being included in the
  1727.   distribution.  The next most popular entry is deliver, followed
  1728.   closely by procmail.
  1729.  
  1730.   Slocal comes with MH.  It can be used to process incoming mail based
  1731.   on the contents of any of the headers.  Actions include filing
  1732.   messages, running commands, printing messages on your terminal and
  1733.   so on.  The configuration is made in ~/.maildelivery.  People seem to
  1734.   have trouble with slocal bugs, and you can't use it if you don't
  1735.   have write permission on your system maildrop so a lot of people
  1736.   have opted for the alternatives, but it's easy to use and comes with
  1737.   MH. --Bill Wohler <wohler@newt.com> [8.94]
  1738.  
  1739.   Deliver can run any script or program (called ~/.deliver), so you
  1740.   really can do anything you want to incoming mail.  One feature that
  1741.   it sports that no other does is that you can install it as a local
  1742.   mailer in place of /bin/mail.  If it's the local mailer, you don't
  1743.   need to have a .forward--~/.deliver is run anyway.  In addition, it
  1744.   allows the system administrator to write some programs to filter
  1745.   everybody's mail.  It came with my Linux system, so installation was
  1746.   non-existent. --Bill Wohler <wohler@newt.com> [8.94]
  1747.  
  1748.   Procmail can be used to create mail-servers, mailing lists, sort
  1749.   your incoming mail into separate folders/files (real convenient when
  1750.   subscribing to one or more mailing lists or for prioritizing your
  1751.   mail), preprocess your mail, start any programs upon mail arrival
  1752.   (e.g. to generate different chimes on your workstation for different
  1753.   types of mail) or selectively forward certain incoming mail
  1754.   automatically to someone. --Stephen R. van den Berg
  1755.   <berg@pool.informatik.rwth-aachen.de> [8.94]
  1756.  
  1757.   ftp://ftp.informatik.rwth-aachen.de/pub/packages/procmail/procmail.tar.gz 160k
  1758.  
  1759.   For perl proficient users, there is a also mailagent 3.0, which can
  1760.   deliver directly to MH folders with unseen sequence update.  You can
  1761.   get a full email distribution of the latest release by sending an
  1762.   appropriate command to my own mailagent, such as:
  1763.  
  1764.     Subject: Command
  1765.  
  1766.     @SH maildist PATH mailagent -
  1767.  
  1768.   where PATH stands for YOUR email address, i.e. a path from me to
  1769.   you. --Raphael Manfredi <ram@acri.fr> [8.94]
  1770.  
  1771.   
  1772. Subject: Why slocal writes messages to system mailbox that from(1) can't read.
  1773. From: 7.2
  1774.  
  1775.   Upgrade to MH 6.8 and set the RPATHS option.  Better yet, use a more
  1776.   MH-like command instead: "scan -file $MAIL".  [1.93]
  1777.  
  1778.   
  1779. Subject: Where can I read about slocal and the format of .maildelivery?
  1780. From: 7.3
  1781.  
  1782.   See the slocal man page.
  1783.  
  1784.   Here is brief example of a .maildelivery file that stores messages
  1785.   to babble in a folder and the system mailbox, stores mh-users in a
  1786.   folder but not the system mailbox, and puts the rest in the system
  1787.   mailbox.
  1788.  
  1789.     to  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  1790.     cc  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  1791.     to  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  1792.     cc  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  1793.     default -     > ? /usr/spool/mail/wohler
  1794.  
  1795.   Your .forward file may look like (quotes necessary):
  1796.  
  1797.     "| /usr/local/lib/mh/slocal -user your_login"
  1798.  
  1799.   In some implementations, the "-user your_login" is not needed.  If
  1800.   not, manually running slocal with the flag will produce an error.
  1801.  
  1802.   See also chapter 11 in the MH book.
  1803.  
  1804.   Alternatives to slocal include deliver, procmail, and mailagent.
  1805.   Archie can help you find where they are kept.
  1806.  
  1807.   
  1808. Subject: How do I debug my .maildelivery file?
  1809. From: 7.4
  1810.  
  1811.   Use as many of the following as necessary.
  1812.  
  1813.   Put a message into a file and call slocal directly on it.
  1814.  
  1815.     /usr/local/lib/mh/slocal -user $USER -verbose -debug < test-msg
  1816.  
  1817.   Modify your .forward to look like:
  1818.  
  1819.     "|/bin/sh -c 'exec >> /tmp/out 2>&1; /usr/local/lib/mh/slocal
  1820.     -user $USER -verbose -debug'"
  1821.  
  1822.   Or modify a rule in .maildelivery to look like this:
  1823.  
  1824.     to foo | R "set -xv; exec >/tmp/out 2>&1;
  1825.     /usr/local/lib/mh/rcvstore +foo"
  1826.  
  1827.   The previous examples are broken up for readability; the text must
  1828.   appear on one line.
  1829.  
  1830.   See also MH book section 11.11. [3.93]
  1831.  
  1832.   
  1833. Subject: Why isn't slocal working?
  1834. From: 7.5
  1835.  
  1836.   If slocal doesn't appear to be doing anything, run the following
  1837.  
  1838.     /usr/local/lib/mh/slocal -user your_login -verbose < file
  1839.  
  1840.   where "file" is some message in a mail folder.  If you get something
  1841.   like:
  1842.  
  1843.     .maildelivery: ownership/modes bad (0, 154,154,0100666)
  1844.  
  1845.   your .maildelivery is writable by too many people.  Make it writable
  1846.   only by you by running "chmod 644 .maildelivery".
  1847.  
  1848.   See also "How do I debug my .maildelivery file?" [3.93]
  1849.  
  1850.  
  1851. Subject: ***** mh-e *****
  1852. From: 8.
  1853.  
  1854.  
  1855. Subject: Is there documentation for mh-e?
  1856. From: 8.1
  1857.  
  1858.   Yes, sort of.  Run "C-h m" (describe-mode) in both scan and
  1859.   letter modes to see which commands and variables are available.
  1860.   Browsing the code is also helpful.
  1861.  
  1862.   
  1863. Subject: How can mail aliases can be expanded in mh-e?
  1864. From: 8.2
  1865.  
  1866.   Typing C-c C-w will show you the expanded list of recipients.
  1867.   --Stephen Gildea <gildea@x.org> [5.94]
  1868.  
  1869.  
  1870. Subject: ***** Xmh *****
  1871. From: 9.
  1872.  
  1873.  
  1874. Subject: How can I get xmh to use Emacs as the editor?
  1875. From: 9.1
  1876.  
  1877.   The modifications to xmh to support an external editor, annotations,
  1878.   and an append command can be found in the these places.  --Bob
  1879.   Ellison <ellison@sei.cmu.edu>
  1880.  
  1881.   ftp.x.org         /R5contrib/xmh-mods-R5-1.7.Z            37k
  1882.   ftp.sei.cmu.edu    /pub/xmh/xmh-mods-R5-1.7.Z            37k
  1883.             /pub/xmh/xmh-mods-R6-1.0.Z            37k
  1884.  
  1885.   As of R5, xmh has a new action proc called XmhShellCommand.  A
  1886.   string parameter will be executed as a shell command with the
  1887.   currently selected messages as parameters (or the current message if
  1888.   there are no selected messages).
  1889.  
  1890.   Using this new action, a couple of shell scripts, a window version
  1891.   of emacs (e.g. xemacs) and some elisp code, xmh can use emacs as its
  1892.   editor instead of the built in Athena text widget editor.  This
  1893.   doesn't require any source code changes to xmh.  These are included
  1894.   in the Appendix "Switching xmh's editor".  --Andrew Wason
  1895.   <aw@bae.bellcore.com>
  1896.  
  1897.   
  1898. Subject: Does xmh support subfolders?
  1899. From: 9.2
  1900.  
  1901.   Yes. Create one by invoking "Create Folder" as usual, and enter
  1902.   something like: existing-folder/new-sub-folder. You can then access
  1903.   the subfolder by popping up a menu over the "existing-folder" button
  1904.   item.  --Steve Malowany <malowany@cenparmi.concordia.ca>
  1905.  
  1906.   But:
  1907.  
  1908.   The R5 version of xmh does *not* handle nested sub-folders.  If you
  1909.   create a folder as 'grab/some/bandwidth', xmh displays this
  1910.   folder name for the remainder of the session where it was created,
  1911.   BUT if you later re-run xmh, the folder is no longer visible to xmh.
  1912.   --John Cooper <jsc@saxon.Eng.Sun.COM>
  1913.  
  1914.   See also MH book section 15.6.2 (14.6.2).
  1915.  
  1916.   
  1917. Subject: How do I precede included messages with ">" when replying in xmh?
  1918. From: 9.3
  1919.  
  1920.   Include the following line in your ~/app-defaults/XMh file:
  1921.  
  1922.     Xmh*replyInsertFilter: "sed 's/^/> /'"
  1923.  
  1924.   --Len Makin <len@mel.dit.csiro.au>
  1925.  
  1926.   or,
  1927.  
  1928.     Xmh.ReplyInsertFilter: /usr/local/lib/mh/mhl -form repl.filter
  1929.  
  1930.   Using this means that you can chose to insert the original by use of
  1931.   the "Insert" button in the Draft message pane.  See "How do I
  1932.   include messages in repl with or without ">"?" to find examples of
  1933.   repl.filter. --Andy Linton <andy.linton@comp.vuw.ac.nz>
  1934.  
  1935.   See also MH book sections 15.1.4 (14.1.4), 16.3.3 (15.2.3).
  1936.  
  1937.  
  1938. Subject: ! Glossary
  1939. From: Appendix
  1940.  
  1941.   MH    Mail Handler
  1942.   POP3    Post Office Protocol, RFC 1225
  1943.   MMDF    Multi-channel Memo Distribution Facility
  1944.   MIME    Multipurpose Internet Mail Extensions, RFC 1341, 1563
  1945.   IMAP    Internet Message Access Protocol, RFC 1064, 1176
  1946.  
  1947.   
  1948. Subject: Acknowledgments
  1949. From: Appendix
  1950.  
  1951. I'd like to thank the following people for providing ideas on the
  1952. layout of this article:
  1953.  
  1954. Joe Wells <jbw@bigbird.bu.edu>          Richard M. Stallman <rms@gnu.ai.mit.edu>
  1955. David Elliott <dce@smsc.sony.com>     Tom Christiansen <tchrist@perl.com>
  1956. Eugene N. Miya <eugene@nas.nasa.gov>
  1957.  
  1958.  
  1959. We are also grateful to the individuals mentioned below and in the
  1960. text of this document who have provided answers or other information
  1961. to make this a better document.  I regret that it is possible that
  1962. some names have been accidently omitted.  I would also like to thank
  1963. all the readers of comp.mail.mh.
  1964.  
  1965. Kim F. Storm <storm@olicom.dk>          Edward Vielmetti <emv@ox.com>
  1966.  
  1967.   
  1968. Subject: Copyright and Warranty
  1969. From: Appendix
  1970.  
  1971.   Copyright 1994 Bill Wohler
  1972.  
  1973.   Permission to use, copy, distribute, and translate this document for
  1974.   any non-commercial purpose is hereby granted, provided that this
  1975.   copyright notice appears in all copies.  Commercial distributions
  1976.   require prior written consent.
  1977.  
  1978.   This article is distributed in the hope that it will be useful,
  1979.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  1980.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  1981.  
  1982.   
  1983. Subject: Switching xmh's editor
  1984. From: Appendix
  1985.  
  1986. #! /bin/sh
  1987. # This is a shell archive.  Remove anything before this line, then unpack
  1988. # it by saving it into a file and typing "sh file".  To overwrite existing
  1989. # files, type "sh file -c".  You can also feed this as standard input via
  1990. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  1991. # will see the following message at the end:
  1992. #        "End of shell archive."
  1993. # Contents:  README Xmh.ad xmh-command.el xmhcommand xmhemacs
  1994. # Wrapped by aw@jello on Fri Nov 15 17:10:34 1991
  1995. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  1996. if test -f 'README' -a "${1}" != "-c" ; then
  1997.   echo shar: Will not clobber existing file \"'README'\"
  1998. else
  1999. echo shar: Extracting \"'README'\" \(1269 characters\)
  2000. sed "s/^X//" >'README' <<'END_OF_FILE'
  2001. XThis is a short description of what to do with each of the enclosed files.
  2002. X
  2003. XXmh.ad
  2004. X  Merge this in with your xmh resources.  If you already have
  2005. X  user defined buttons, then you may need to renumber the
  2006. X  buttons in this resource file.
  2007. X
  2008. Xxmh-command.el
  2009. X  Byte compile this file and put it in your GNU emacs load-path.
  2010. X
  2011. Xxmhcommand
  2012. Xxmhemacs
  2013. X  Put these somewhere in your path.
  2014. X
  2015. X
  2016. XOnce you have installed these, restart the R5 xmh with the new
  2017. Xresources.  When you press the repl, forw or comp buttons
  2018. Xan xemacs window will come up with your draft message.
  2019. X
  2020. XOnce you have written your mail, save it and exit GNU emacs (C-xC-c).
  2021. XYou will be prompted if you want to send the current message.
  2022. XIf you enter 'y', the message will be sent and the output will
  2023. Xbe displayed in an emacs window (in case you use -verbose or -snoop).
  2024. XThen you will be prompted to exit emacs.  Enter 'y' when you are ready.
  2025. X
  2026. XIf you answered 'n' when prompted to send the message,
  2027. Xthen the draft message will be deleted and emacs will exit.
  2028. X
  2029. XYou can modify the Xmh.ad resources to add more buttons.
  2030. XAny MH command which accepts "+folder msg" can be used
  2031. X(e.g. a replx shell script which includes the body of the
  2032. Xmessage being replied to can be bound to a replx button)
  2033. X
  2034. X
  2035. XAndrew Wason
  2036. Xaw@bae.bellcore.com
  2037. END_OF_FILE
  2038. if test 1269 -ne `wc -c <'README'`; then
  2039.     echo shar: \"'README'\" unpacked with wrong size!
  2040. fi
  2041. # end of 'README'
  2042. fi
  2043. if test -f 'Xmh.ad' -a "${1}" != "-c" ; then
  2044.   echo shar: Will not clobber existing file \"'Xmh.ad'\"
  2045. else
  2046. echo shar: Extracting \"'Xmh.ad'\" \(457 characters\)
  2047. sed "s/^X//" >'Xmh.ad' <<'END_OF_FILE'
  2048. XXmh*CommandButtonCount:            3
  2049. X
  2050. XXmh*commandBox.button1.label:        repl
  2051. XXmh*commandBox.button1.translations:\
  2052. X    #override\n\
  2053. X    <Btn1Up>:    XmhShellCommand(xmhcommand y repl) unset()
  2054. X
  2055. XXmh*commandBox.button2.label:        forw
  2056. XXmh*commandBox.button2.translations:\
  2057. X    #override\n\
  2058. X    <Btn1Up>:    XmhShellCommand(xmhcommand y forw) unset()
  2059. X
  2060. XXmh*commandBox.button3.label:        comp
  2061. XXmh*commandBox.button3.translations:\
  2062. X    #override\n\
  2063. X    <Btn1Up>:    XmhShellCommand(xmhcommand n comp) unset()
  2064. END_OF_FILE
  2065. if test 457 -ne `wc -c <'Xmh.ad'`; then
  2066.     echo shar: \"'Xmh.ad'\" unpacked with wrong size!
  2067. fi
  2068. # end of 'Xmh.ad'
  2069. fi
  2070. if test -f 'xmh-command.el' -a "${1}" != "-c" ; then
  2071.   echo shar: Will not clobber existing file \"'xmh-command.el'\"
  2072. else
  2073. echo shar: Extracting \"'xmh-command.el'\" \(1294 characters\)
  2074. sed "s/^X//" >'xmh-command.el' <<'END_OF_FILE'
  2075. X;;; These functions are for use with xemacs and xmh.
  2076. X;;; The R5 xmh has a new action - XmhShellCommand which executes
  2077. X;;; a shell command with the current msg as an arg.
  2078. X;;; By executing something like:
  2079. X;;;    XmhShellCommand(xmhcommand repl)
  2080. X;;; you can use xemacs as your editor with xmh.
  2081. X;;;
  2082. X;;; The following elisp functions perform the basic whatnowproc functionality
  2083. X;;; (quitting and deleting, sending)
  2084. X;;;
  2085. X;;; Andrew Wason  aw@bae.bellcore.com
  2086. X
  2087. X
  2088. X;;; Override C-xC-c
  2089. X(define-key indented-text-mode-map "\C-x\C-c" 'xmh-command-send-or-delete)
  2090. X
  2091. X
  2092. X(setq mhdraft (getenv "mhdraft"))    ; save the filename of the draft
  2093. X
  2094. X
  2095. X(find-file mhdraft)            ; load the draft letter
  2096. X(indented-text-mode)
  2097. X(setq draft-buffer (current-buffer))    ; save the buffer the draft is in
  2098. X
  2099. X
  2100. X(defun xmh-command-send-or-delete ()
  2101. X  "Prompt to send or delete letter, then quit."
  2102. X  (interactive)
  2103. X  (set-buffer draft-buffer)
  2104. X  (if (y-or-n-p "Send message? ")
  2105. X      (progn
  2106. X    (save-buffer)                ; save the draft buffer
  2107. X    (message "Sending...")
  2108. X    (pop-to-buffer "MH mail delivery"); pop to a buffer for "send" output
  2109. X    (erase-buffer)
  2110. X    (call-process "send" nil t t mhdraft)    ; call MH "send"
  2111. X    (if (y-or-n-p "Exit? ")
  2112. X        (kill-emacs)))            ; exit emacs
  2113. X    (delete-file mhdraft)            ; delete the draft letter
  2114. X    (kill-emacs)))                ; exit emacs
  2115. END_OF_FILE
  2116. if test 1294 -ne `wc -c <'xmh-command.el'`; then
  2117.     echo shar: \"'xmh-command.el'\" unpacked with wrong size!
  2118. fi
  2119. # end of 'xmh-command.el'
  2120. fi
  2121. if test -f 'xmhcommand' -a "${1}" != "-c" ; then
  2122.   echo shar: Will not clobber existing file \"'xmhcommand'\"
  2123. else
  2124. echo shar: Extracting \"'xmhcommand'\" \(669 characters\)
  2125. sed "s/^X//" >'xmhcommand' <<'END_OF_FILE'
  2126. X#!/bin/sh
  2127. X# This shell should be invoked by the xmh XmhShellCommand() action as
  2128. X#   XmhShellCommand(xmhcommand y repl)
  2129. X#   XmhShellCommand(xmhcommand n comp) etc.
  2130. X# If the second arg is y, then the message list will be used.
  2131. X
  2132. X# We invoke the passed MH command on the identified message
  2133. X# (we must strip the message number and folder from the pathname)
  2134. X(if [ $1 = "y" ]
  2135. Xthen
  2136. X    $2 -whatnowproc xmhemacs +`dirname \`echo $3 | \
  2137. X        sed "s;\\\`mhpath +\\\`/;;"\`` `basename $3`
  2138. X
  2139. X# You can use this more readable version instead if you have ksh
  2140. X#    $2 -whatnowproc xmhemacs +$(dirname $(echo $3 | \
  2141. X#        sed "s;$(mhpath +)/;;")) $(basename $3)
  2142. X
  2143. Xelse
  2144. X    $2 -whatnowproc xmhemacs
  2145. Xfi)&
  2146. END_OF_FILE
  2147. if test 669 -ne `wc -c <'xmhcommand'`; then
  2148.     echo shar: \"'xmhcommand'\" unpacked with wrong size!
  2149. fi
  2150. chmod +x 'xmhcommand'
  2151. # end of 'xmhcommand'
  2152. fi
  2153. if test -f 'xmhemacs' -a "${1}" != "-c" ; then
  2154.   echo shar: Will not clobber existing file \"'xmhemacs'\"
  2155. else
  2156. echo shar: Extracting \"'xmhemacs'\" \(116 characters\)
  2157. sed "s/^X//" >'xmhemacs' <<'END_OF_FILE'
  2158. X#!/bin/sh
  2159. X# Invoke xemacs and load the xmh-command.el stuff.
  2160. X# xmhemacs is used by xmhcommand
  2161. Xxemacs -l xmh-command
  2162. END_OF_FILE
  2163. if test 116 -ne `wc -c <'xmhemacs'`; then
  2164.     echo shar: \"'xmhemacs'\" unpacked with wrong size!
  2165. fi
  2166. chmod +x 'xmhemacs'
  2167. # end of 'xmhemacs'
  2168. fi
  2169. echo shar: End of shell archive.
  2170. exit 0
  2171.  
  2172.   
  2173. Subject: babyl2mh.pl
  2174. From: Appendix
  2175.  
  2176. #!/usr/gnu/bin/perl
  2177. # incorporate an RMAIL babyl file into an MH folder
  2178. #
  2179. # usage: babyl2mh +folder babyl-file
  2180. #
  2181. # V. Khera <khera@cs.duke.edu> 17-JUL-1991
  2182.  
  2183. # where to find rcvstore
  2184. $rcvstore = "/usr/local/lib/mh/rcvstore";
  2185.  
  2186. #
  2187. # pull out command line args
  2188. #
  2189. die "usage: babyl2mh +folder babyl-file\n" unless @ARGV == 2;
  2190.  
  2191. $folder = shift;
  2192. # make sure folder name starts with a "+"
  2193. (substr($folder,0,1) eq "+") || (substr($folder,0,0) = "+");
  2194. $bfname = shift;
  2195.  
  2196. print "Incorporating RMAIL file $bfname into MH folder $folder\n";
  2197.  
  2198. #
  2199. # read in babyl file.
  2200. #
  2201. $/ = "\037";    # this separates the records in a babyl file
  2202. $* = 1;        # records are multi-lines
  2203.  
  2204. open(BABYL,$bfname) || die "Couldn't open $bfname\n";
  2205.  
  2206. $_ = <BABYL>;    # discard header.
  2207.  
  2208. $msgnum = 0;
  2209.  
  2210. while (<BABYL>) {
  2211.   chop;        # get rid of delimeter
  2212.   s/\f(.|\n)*\*\*\* EOOH \*\*\*\n//;    # remove duplicate header information
  2213.   open(RCVSTORE,"|" . $rcvstore . " $folder");
  2214.   print RCVSTORE $_;
  2215.   $msgnum++;
  2216.   print "Message $msgnum done.\n";
  2217. }
  2218.  
  2219.   
  2220. Subject: inco
  2221. From: Appendix
  2222.  
  2223. #!/bin/sh
  2224. # Usage: inco [from [folder]]
  2225. # "from" defaults to $HOME/Mail/outbound, "folder" to +inbox.
  2226.  
  2227. lispfile=/tmp/inco.$$.el
  2228. input=${1-$HOME/Mail/outbound}
  2229. tmpmbox=/tmp/inc.$$.mbox
  2230. folder=${2-+inbox}
  2231.  
  2232. if [ $# -ge 3 ]; then
  2233.     echo Usage: `basename $0` [ from [ folder ]]
  2234.     exit 2
  2235. fi
  2236.  
  2237. trap "rm -f $lispfile $tmpmbox ; exit 1" 1 2 15
  2238.  
  2239. touch $tmpmbox
  2240. chmod 600 $tmpmbox
  2241.  
  2242. echo '(rmail-input "'$input'")
  2243. (rmail-last-message)
  2244. (setq last (rmail-what-message))
  2245. (rmail-show-message 1)
  2246. (while (not (equal (rmail-what-message) last))
  2247.   (rmail-output "'$tmpmbox'")
  2248.   (rmail-delete-forward nil))
  2249. (rmail-output "'$tmpmbox'")
  2250. (kill-buffer (current-buffer))
  2251. ' > $lispfile
  2252.  
  2253. emacs -batch -l $lispfile
  2254. inc -file $tmpmbox $folder
  2255.  
  2256. > $input
  2257. rm -f $lispfile $tmpmbox
  2258.  
  2259.   
  2260. Subject: srvrsmtp.c patch
  2261. From: Appendix
  2262.  
  2263. >From the 5.67 sources:
  2264.  
  2265. *** srvrsmtp.c-    Mon Feb 22 12:25:54 1993
  2266. --- srvrsmtp.c    Mon Feb 22 12:29:09 1993
  2267. ***************
  2268. *** 384,389 ****
  2269. --- 384,395 ----
  2270.               message("250", "Reset state");
  2271.               if (InChild)
  2272.                   finis();
  2273.  
  2274.               /* clean up a bit if running in parent */
  2275.               hasmail = FALSE;
  2276.               dropenvelope(CurEnv);
  2277.               CurEnv = newenvelope(CurEnv);
  2278.               CurEnv->e_flags = BlankEnvelope.e_flags;
  2279.               break;
  2280.  
  2281.             case CMDVRFY:        /* vrfy -- verify address */
  2282.  
  2283.   
  2284. Subject: + mhn.c patch
  2285. From: Appendix
  2286.  
  2287. *** mh-6.8.3/uip/mhn.c.org    Wed Dec  1 05:01:36 1993
  2288. --- mh-6.8.3/uip/mhn.c    Fri Jun  3 12:38:04 1994
  2289. ***************
  2290. *** 1014,1019 ****
  2291. --- 1014,1020 ----
  2292.   #include "../h/mhn.h"
  2293.   
  2294.   
  2295. + #undef si_value
  2296.   struct str2init {
  2297.       char   *si_key;
  2298.       int        si_value;
  2299.  
  2300.  
  2301. Local Variables:
  2302. mode: outline
  2303. outline-regexp: "^Subject:"
  2304. fill-prefix: "  "
  2305. End:
  2306.  
  2307.